diff options
author | Soispha <soispha@vhack.eu> | 2023-07-05 21:27:50 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-07-05 21:27:50 +0200 |
commit | d0a8582807d8a621252f15aad7fdb774a472de23 (patch) | |
tree | 50a0eb8b27aa162918fb4459b76f8c49415bfcf6 /system | |
parent | Fix(system/services/nix-sync): Guard deletion of `repo.path` (diff) | |
download | nixos-server-d0a8582807d8a621252f15aad7fdb774a472de23.tar.gz nixos-server-d0a8582807d8a621252f15aad7fdb774a472de23.zip |
Style(system/fs_layouts): Merge attrsets
Diffstat (limited to '')
-rw-r--r-- | system/file_system_layouts/impermanence.nix | 48 |
1 files changed, 23 insertions, 25 deletions
diff --git a/system/file_system_layouts/impermanence.nix b/system/file_system_layouts/impermanence.nix index 23254e4..32ad9f7 100644 --- a/system/file_system_layouts/impermanence.nix +++ b/system/file_system_layouts/impermanence.nix @@ -1,28 +1,26 @@ {...}: { - environment.persistence = { - "/srv" = { - hideMounts = true; - directories = [ - "/etc/nixos" - "/var/log" - "/var/lib/postgresql" - "/var/lib/acme" - { - directory = "/var/lib/nix-sync"; - user = "nix-sync"; - group = "nix-sync"; - mode = "0700"; - } - { - directory = "/var/lib/sshd"; - user = "root"; - group = "root"; - mode = "0755"; - } - ]; - files = [ - "/etc/machine-id" - ]; - }; + environment.persistence."/srv" = { + hideMounts = true; + directories = [ + "/etc/nixos" + "/var/log" + "/var/lib/postgresql" + "/var/lib/acme" + { + directory = "/var/lib/nix-sync"; + user = "nix-sync"; + group = "nix-sync"; + mode = "0700"; + } + { + directory = "/var/lib/sshd"; + user = "root"; + group = "root"; + mode = "0755"; + } + ]; + files = [ + "/etc/machine-id" + ]; }; } |