From 871a7ff47b9c1e374886ea44de92b5f48db1f03f Mon Sep 17 00:00:00 2001 From: sefidel Date: Fri, 23 Aug 2024 08:35:48 +0900 Subject: fix(systems): persist /var/lib/nixos * fixes occasional permission errors --- systems/v-nanode1/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'systems/v-nanode1') diff --git a/systems/v-nanode1/default.nix b/systems/v-nanode1/default.nix index b4d48c9..9ac234d 100644 --- a/systems/v-nanode1/default.nix +++ b/systems/v-nanode1/default.nix @@ -84,7 +84,14 @@ in modules = { security.enable = true; - persistence.enable = false; + persistence = { + enable = true; + storagePath = "/persist"; + + directories = [ + "/var/lib/nixos" + ]; + }; binary-cache.enable = true; sops.enable = true; -- cgit 1.4.1