From c509d9ad37194f1a92d90b06e73e34b3f866237d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 13 Jun 2022 15:37:42 +0200 Subject: nixos/modules/desktop: configure snapper --- nixos/modules/desktop.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'nixos/modules') 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" + ''; + }; + }; + }; } -- cgit v1.2.3