Add livebook
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
./fail2ban
|
./fail2ban
|
||||||
./gitea
|
./gitea
|
||||||
./golink
|
./golink
|
||||||
|
./livebook
|
||||||
./monitoring
|
./monitoring
|
||||||
./synapse
|
./synapse
|
||||||
];
|
];
|
||||||
|
|||||||
15
modules/livebook/default.nix
Normal file
15
modules/livebook/default.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{ config, ... }:
|
||||||
|
{
|
||||||
|
virtualisation.oci-containers = {
|
||||||
|
backend = "docker";
|
||||||
|
containers = {
|
||||||
|
"livebook" = {
|
||||||
|
image = "ghcr.io/livebook-dev/livebook";
|
||||||
|
ports = [ "8080:8080" "8081:8081" ];
|
||||||
|
volumes = [ "/home/daniel/livebook/data:/data" ];
|
||||||
|
user = "${toString config.users.users."daniel".uid}:${toString config.users.groups."users".gid}";
|
||||||
|
environmentFiles = [ "/home/daniel/.livebook_env" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user