nix/container/Cloud.nix
2024-06-09 16:26:05 +03:00

28 lines
481 B
Nix

{ storage
, mkContainer
, mkContainerConfig
, mkContainerDir
, ... } @args: let
address = "10.1.0.13";
path = "${storage}/cloud";
in {
systemd.tmpfiles.rules = map (dir: mkContainerDir "${path}/${dir}") [
"data"
];
containers.postgres = mkContainer address {
bindMounts = {
"/var/www/html" = {
hostPath = "${path}/data";
isReadOnly = false;
};
};
config = { ... }: mkContainerConfig {
services.nextcloud = {
enable = true;
};
};
};
}