system/snapper: move to new config

This commit is contained in:
LavaDesu 2023-06-18 21:19:05 +07:00
parent e0c96b4628
commit 859dfb9552
Signed by: cilly
GPG key ID: 6500251E087653C9
2 changed files with 20 additions and 24 deletions

View file

@ -36,9 +36,8 @@ in
};
};
services.snapper.configs.cream = {
fstype = "btrfs";
subvolume = "/mnt/cream/permanence";
extraConfig = lib.concatStringsSep "\n" (lib.mapAttrsToList (k: v: "${k}=${v}") {
FSTYPE = "btrfs";
SUBVOLUME = "/mnt/cream/permanence";
TIMELINE_CLEANUP = "yes";
TIMELINE_CREATE = "yes";
TIMELINE_MIN_AGE = "1800";
@ -47,6 +46,5 @@ in
TIMELINE_LIMIT_WEEKLY = "0";
TIMELINE_LIMIT_MONTHLY = "0";
TIMELINE_LIMIT_YEARLY = "0";
});
};
}

View file

@ -2,9 +2,8 @@
services.snapper = {
cleanupInterval = "1h";
configs.home = {
fstype = "btrfs";
subvolume = "/home";
extraConfig = lib.concatStringsSep "\n" (lib.mapAttrsToList (k: v: "${k}=${v}") {
FSTYPE = "btrfs";
SUBVOLUME = "/home";
TIMELINE_CLEANUP = "yes";
TIMELINE_CREATE = "yes";
TIMELINE_MIN_AGE = "1800";
@ -13,7 +12,6 @@
TIMELINE_LIMIT_WEEKLY = "0";
TIMELINE_LIMIT_MONTHLY = "0";
TIMELINE_LIMIT_YEARLY = "0";
});
};
};
}