diff --git a/hosts/copper/configuration.nix b/hosts/copper/configuration.nix index ed1d01a..f69f1ba 100644 --- a/hosts/copper/configuration.nix +++ b/hosts/copper/configuration.nix @@ -32,6 +32,27 @@ priority = 1; }; + services.snapper.configs = { + home = { + SUBVOLUME = "/home"; + ALLOW_USERS = [ "jalr" ]; + TIMELINE_CREATE = true; + TIMELINE_CLEANUP = true; + TIMELINE_LIMIT_HOURLY = 12; + TIMELINE_LIMIT_DAILY = 7; + TIMELINE_LIMIT_WEEKLY = 4; + TIMELINE_LIMIT_MONTHLY = 3; + TIMELINE_LIMIT_YEARLY = 0; + BACKGROUND_COMPARISON = "yes"; + NUMBER_CLEANUP = "no"; + NUMBER_MIN_AGE = "1800"; + NUMBER_LIMIT = "100"; + NUMBER_LIMIT_IMPORTANT = "10"; + EMPTY_PRE_POST_CLEANUP = "yes"; + EMPTY_PRE_POST_MIN_AGE = "1800"; + }; + }; + jalr = { bootloader = "lanzaboote"; bluetooth.enable = true; diff --git a/hosts/copper/disko.nix b/hosts/copper/disko.nix index 1d60f7f..bdbbf17 100644 --- a/hosts/copper/disko.nix +++ b/hosts/copper/disko.nix @@ -38,6 +38,9 @@ mountpoint = "/home"; mountOptions = [ "compress-force=zstd:1" "noatime" "nodev" "nosuid" ]; }; + "/home/.snapshots" = { + mountOptions = [ "compress-force=zstd:1" "noatime" "nodev" "nosuid" ]; + }; "/nix" = { mountpoint = "/nix"; mountOptions = [ "compress-force=zstd:1" "noatime" "noatime" "nodev" ];