From b5fc07416652a445f15946ce7e5fc48766cf6722 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 24 Dec 2024 16:09:20 +0100 Subject: refactor(modules/impermanence): Migrate to by-name while distributing mods --- modules/by-name/ni/nix-sync/module.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/by-name/ni/nix-sync') 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; -- cgit 1.4.1