From 60a6230bd42730699fb60541dd2426d51ba8cc80 Mon Sep 17 00:00:00 2001 From: albert Date: Thu, 21 Nov 2024 16:05:14 +0100 Subject: [PATCH] Update Snapper configs --- nixos/common/services/snapper.nix | 22 ++++++++++++++++++++-- nixos/hosts/framework-server/disks.nix | 6 ++++++ nixos/hosts/nuc-server/disks.nix | 6 ++++++ 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/nixos/common/services/snapper.nix b/nixos/common/services/snapper.nix index 4f82c675..363371b8 100644 --- a/nixos/common/services/snapper.nix +++ b/nixos/common/services/snapper.nix @@ -3,24 +3,42 @@ services.snapper = { snapshotRootOnBoot = true; - cleanupInterval = "7d"; + cleanupInterval = "1d"; snapshotInterval = "hourly"; configs = { root = { TIMELINE_CREATE = true; TIMELINE_CLEANUP = true; + # TIMELINE_LIMIT_YEARLY = 0; + # TIMELINE_LIMIT_QUARTERLY = 2; + # TIMELINE_LIMIT_MONTHLY = 3; + # TIMELINE_LIMIT_WEEKLY = 4; + # TIMELINE_LIMIT_DAILY = 7; + # TIMELINE_LIMIT_HOURLY = 24; SUBVOLUME = "/"; }; home = { TIMELINE_CREATE = true; TIMELINE_CLEANUP = true; + # TIMELINE_LIMIT_YEARLY = 0; + # TIMELINE_LIMIT_QUARTERLY = 2; + # TIMELINE_LIMIT_MONTHLY = 3; + # TIMELINE_LIMIT_WEEKLY = 4; + # TIMELINE_LIMIT_DAILY = 7; + # TIMELINE_LIMIT_HOURLY = 24; SUBVOLUME = "/home"; }; nix = { TIMELINE_CREATE = true; TIMELINE_CLEANUP = true; + # TIMELINE_LIMIT_YEARLY = 0; + # TIMELINE_LIMIT_QUARTERLY = 2; + # TIMELINE_LIMIT_MONTHLY = 3; + # TIMELINE_LIMIT_WEEKLY = 4; + # TIMELINE_LIMIT_DAILY = 7; + # TIMELINE_LIMIT_HOURLY = 24; SUBVOLUME = "/nix"; }; }; }; -} \ No newline at end of file +} diff --git a/nixos/hosts/framework-server/disks.nix b/nixos/hosts/framework-server/disks.nix index 9397341c..5b3d30c4 100644 --- a/nixos/hosts/framework-server/disks.nix +++ b/nixos/hosts/framework-server/disks.nix @@ -5,6 +5,12 @@ services.snapper.configs.Storage = { TIMELINE_CREATE = true; TIMELINE_CLEANUP = true; + # TIMELINE_LIMIT_YEARLY = 0; + # TIMELINE_LIMIT_QUARTERLY = 2; + # TIMELINE_LIMIT_MONTHLY = 3; + # TIMELINE_LIMIT_WEEKLY = 4; + # TIMELINE_LIMIT_DAILY = 7; + # TIMELINE_LIMIT_HOURLY = 24; SUBVOLUME = "/Storage"; }; diff --git a/nixos/hosts/nuc-server/disks.nix b/nixos/hosts/nuc-server/disks.nix index 056af871..a00c3535 100644 --- a/nixos/hosts/nuc-server/disks.nix +++ b/nixos/hosts/nuc-server/disks.nix @@ -5,6 +5,12 @@ services.snapper.configs.Local-Storage = { TIMELINE_CREATE = true; TIMELINE_CLEANUP = true; + # TIMELINE_LIMIT_YEARLY = 0; + # TIMELINE_LIMIT_QUARTERLY = 2; + # TIMELINE_LIMIT_MONTHLY = 3; + # TIMELINE_LIMIT_WEEKLY = 4; + # TIMELINE_LIMIT_DAILY = 7; + # TIMELINE_LIMIT_HOURLY = 24; SUBVOLUME = "/Local-Storage"; };