nixos-configs/devices/nas/modules/arion/vaultwarden/compose.nix

26 lines
583 B
Nix
Raw Normal View History

2024-02-28 14:11:41 -05:00
{config, ...}: let
inherit (config.arion) rwDataDir;
rwPath = rwDataDir + "/vaultwarden";
in {
arion.projects."vaultwarden" = {
"public-vault" = {
image = ./images/vaultwarden.nix;
restart = "always";
ports = ["8781:80"];
volumes = ["${rwPath}/public-data:/data"];
environment.WEBSOCKET_ENABLED = "true";
};
"private-vault" = {
image = ./images/vaultwarden.nix;
restart = "always";
ports = ["8780:80"];
volumes = ["${rwPath}/private-data:/data"];
environment.WEBSOCKET_ENABLED = "true";
};
};
}