nixos-configs/devices/nas/modules/arion/vaultwarden/compose.nix
matt1432 875cc683de
All checks were successful
Discord / discord commits (push) Has been skipped
feat(arion): migrate vaultwarden
2024-02-28 14:11:41 -05:00

25 lines
583 B
Nix

{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";
};
};
}