summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-07-05 21:27:50 +0200
committerSoispha <soispha@vhack.eu>2023-07-05 21:27:50 +0200
commitd0a8582807d8a621252f15aad7fdb774a472de23 (patch)
tree50a0eb8b27aa162918fb4459b76f8c49415bfcf6
parentFix(system/services/nix-sync): Guard deletion of `repo.path` (diff)
downloadnixos-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.nix48
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"
+    ];
   };
 }