aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-06-13 15:37:42 +0200
committerKarel Kočí <cynerd@email.cz>2022-06-13 15:37:42 +0200
commitc509d9ad37194f1a92d90b06e73e34b3f866237d (patch)
treed2a2de4b3d8eb1b00ebb93cc191129c7a1a449bd /nixos
parent944968b85815835e73edda2bc47cfb1e553037f4 (diff)
downloadnixos-personal-c509d9ad37194f1a92d90b06e73e34b3f866237d.tar.gz
nixos-personal-c509d9ad37194f1a92d90b06e73e34b3f866237d.tar.bz2
nixos-personal-c509d9ad37194f1a92d90b06e73e34b3f866237d.zip
nixos/modules/desktop: configure snapper
Diffstat (limited to 'nixos')
-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"
+ '';
+ };
+ };
+
};
}