aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nixos/modules/desktop.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/nixos/modules/desktop.nix b/nixos/modules/desktop.nix
index c86b0d1..17fd90d 100644
--- a/nixos/modules/desktop.nix
+++ b/nixos/modules/desktop.nix
@@ -165,5 +165,31 @@ in {
documentation.man.man-db.enable = true;
+ services.snapper.configs = {
+ home = {
+ subvolume = "/home";
+ extraConfig = ''
+ ALLOW_GROUPS="users"
+ BACKGROUND_COMPARISON="yes"
+ EMPTY_PRE_POST_CLEANUP="yes"
+ EMPTY_PRE_POST_MIN_AGE="1800"
+ FREE_LIMIT="0.2"
+ NUMBER_CLEANUP="yes"
+ NUMBER_LIMIT="50"
+ NUMBER_LIMIT_IMPORTANT="10"
+ NUMBER_MIN_AGE="1800"
+ SPACE_LIMIT="0.5"
+ TIMELINE_CLEANUP="yes"
+ TIMELINE_CREATE="yes"
+ TIMELINE_LIMIT_DAILY="10"
+ TIMELINE_LIMIT_HOURLY="10"
+ TIMELINE_LIMIT_MONTHLY="10"
+ TIMELINE_LIMIT_WEEKLY="0"
+ TIMELINE_LIMIT_YEARLY="10"
+ TIMELINE_MIN_AGE="1800"
+ '';
+ };
+ };
+
};
}