From 588798471e2fa40198daa1a2dcdde8b5b0eea249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Wed, 19 Feb 2025 10:39:55 +0100 Subject: [PATCH] fix: impermanence auto enabled --- modules/profiles/impermanence.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/profiles/impermanence.nix b/modules/profiles/impermanence.nix index de268ae..2f9bef4 100644 --- a/modules/profiles/impermanence.nix +++ b/modules/profiles/impermanence.nix @@ -7,6 +7,8 @@ in { options.my.profiles.impermanence.enable = mkEnableOption "impermanence"; + imports = [{ environment.persistence."/persist".enable = cfg.enable; }]; + config = mkIf cfg.enable { age.secrets = { root-password.file = ../../secrets/root-password.age; @@ -18,7 +20,6 @@ in }; users.mutableUsers = false; environment.persistence."/persist" = { - enable = cfg.enable; hideMounts = true; directories = [ "/etc/NetworkManager/system-connections"