nixos-configs/devices/nos/modules/docker/vaultwarden/compose.nix

30 lines
636 B
Nix
Raw Normal View History

2024-07-24 15:49:31 -04:00
{
config,
pkgs,
...
}: let
inherit (config.khepri) rwDataDir;
2024-02-28 14:11:41 -05:00
rwPath = rwDataDir + "/vaultwarden";
in {
2024-07-24 15:49:31 -04:00
khepri.compositions."vaultwarden".services = {
2024-02-28 14:11:41 -05:00
"public-vault" = {
2024-07-24 15:49:31 -04:00
image = import ./images/vaultwarden.nix pkgs;
2024-02-28 14:11:41 -05:00
restart = "always";
ports = ["8781:80"];
volumes = ["${rwPath}/public-data:/data"];
environment.WEBSOCKET_ENABLED = "true";
};
"private-vault" = {
2024-07-24 15:49:31 -04:00
image = import ./images/vaultwarden.nix pkgs;
2024-02-28 14:11:41 -05:00
restart = "always";
ports = ["8780:80"];
volumes = ["${rwPath}/private-data:/data"];
environment.WEBSOCKET_ENABLED = "true";
};
};
}