summary refs log tree commit diff stats
path: root/modules/by-name/ni/nix-sync/module.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/by-name/ni/nix-sync/module.nix')
-rw-r--r--modules/by-name/ni/nix-sync/module.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/by-name/ni/nix-sync/module.nix b/modules/by-name/ni/nix-sync/module.nix
index 0a92888..de096b9 100644
--- a/modules/by-name/ni/nix-sync/module.nix
+++ b/modules/by-name/ni/nix-sync/module.nix
@@ -50,6 +50,15 @@ in {
   };
 
   config = lib.mkIf cfg.enable {
+    vhack.persist.directories = [
+      {
+        directory = "/var/lib/nix-sync";
+        user = "nix-sync";
+        group = "nix-sync";
+        mode = "0700";
+      }
+    ];
+
     services.nix-sync = {
       enable = true;
       repositories = nixSyncRepositories;