diff --git a/hosts/ws-home/configuration.nix b/hosts/ws-home/configuration.nix index ed00680..58a1fd3 100644 --- a/hosts/ws-home/configuration.nix +++ b/hosts/ws-home/configuration.nix @@ -22,7 +22,12 @@ }; modules.impermanence.directories = [ "/var/lib/private/matterjs-server" - "/var/lib/hass" + { + directory = "/var/lib/hass"; + user = "hass"; + group = "hass"; + mode = "0700"; + } ]; systemd.tmpfiles.rules = [ "d /var/lib/private 0700 root root -" diff --git a/modules/nixos/impermanence.nix b/modules/nixos/impermanence.nix index ec0d2b6..4a04d6b 100644 --- a/modules/nixos/impermanence.nix +++ b/modules/nixos/impermanence.nix @@ -8,7 +8,7 @@ in options.modules.impermanence = { enable = mkEnableOption "Impermanence"; directories = mkOption { - type = types.listOf types.str; + type = types.listOf (types.either types.str types.attrs); default = [ ]; description = '' Directories that should be stored in persistent storage.