mkIf impermanence

Signed-off-by: Hadi <hadi@example.fr>
This commit is contained in:
Hadi
2026-08-17 14:57:11 +02:00
parent 9a3fa6f4a9
commit 5076c244db
13 changed files with 58 additions and 23 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
{
config,
inputs,
lib,
...
}: {
imports = [
@@ -48,7 +49,7 @@
inherit (config.var) username;
homeDirectory = "/home/" + config.var.username;
persistence."/persist" = {
persistence."/persist" = lib.mkIf (config.var.impermanenceEnabled or false) {
directories = [
".config/nixos" # this repo itself (nixy manages it here)
".local/share"
+1
View File
@@ -26,6 +26,7 @@
autoUpgrade = false;
autoGarbageCollector = true;
impermanenceEnabled = true;
};
# DON'T TOUCH THIS