diff options
author | tdback <tyler@tdback.net> | 2025-01-09 20:31:34 -0500 |
---|---|---|
committer | tdback <tyler@tdback.net> | 2025-01-09 20:31:34 -0500 |
commit | e49b33fe446ca5a47f9eb04b5163609835db3dad (patch) | |
tree | f296680bcb3d97c6b987798f6742a09b72e1ebac /modules/containers/vaultwarden | |
parent | ed190095730b183dca262a913a0b15e74a4d27fa (diff) |
fix: cleanup container configs
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"; |