diff options
Diffstat (limited to 'modules/containers/vaultwarden')
-rw-r--r-- | modules/containers/vaultwarden/default.nix | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/modules/containers/vaultwarden/default.nix b/modules/containers/vaultwarden/default.nix index cc6b86f..185fde1 100644 --- a/modules/containers/vaultwarden/default.nix +++ b/modules/containers/vaultwarden/default.nix @@ -1,22 +1,18 @@ { lib, ... }: let - directory = "/opt/vaultwarden"; + inherit (lib.lists) singleton; + directory = singleton "/opt/vaultwarden"; domain = "steel-mountain.brownbread.net"; port = "11001"; in { - systemd.tmpfiles.rules = - map (x: "d ${x} 0755 share share - -") (lib.lists.singleton directory); + systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") (singleton directory); virtualisation.oci-containers.containers.vaultwarden = { image = "vaultwarden/server:latest"; autoStart = true; - ports = [ - "${port}:80" - ]; - volumes = [ - "${directory}/data:/data" - ]; + ports = singleton "${port}:80"; + volumes = singleton "${directory}/data:/data"; environment = { DOMAIN = domain; WEBSOCKET_ENABLED = "true"; |