From 88017f5a874478dd82f306a5df88c38a8d06fcb6 Mon Sep 17 00:00:00 2001 From: tdback Date: Thu, 16 Jan 2025 19:57:13 -0500 Subject: fix: format flake with `nixfmt-rfc-style` --- modules/containers/vaultwarden/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'modules/containers/vaultwarden/default.nix') diff --git a/modules/containers/vaultwarden/default.nix b/modules/containers/vaultwarden/default.nix index 9211c63..7fb4ae0 100644 --- a/modules/containers/vaultwarden/default.nix +++ b/modules/containers/vaultwarden/default.nix @@ -1,18 +1,17 @@ -{ lib, ... }: +{ ... }: let - inherit (lib.lists) singleton; directory = "/opt/vaultwarden"; domain = "steel-mountain.brownbread.net"; port = "11001"; in { - systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") (singleton directory); + systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") [ directory ]; virtualisation.oci-containers.containers.vaultwarden = { image = "vaultwarden/server:latest"; autoStart = true; - ports = singleton "${port}:80"; - volumes = singleton "${directory}/data:/data"; + ports = [ "${port}:80" ]; + volumes = [ "${directory}/data:/data" ]; environment = { DOMAIN = domain; WEBSOCKET_ENABLED = "true"; -- cgit v1.2.3