From f20ba299edb5459d18f64687e0d19eb3785518af Mon Sep 17 00:00:00 2001 From: albert Date: Thu, 21 Nov 2024 16:14:24 +0100 Subject: [PATCH] Testing --- nixos/common/services/snapper.nix | 38 +++++++++++++++---------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/nixos/common/services/snapper.nix b/nixos/common/services/snapper.nix index 363371b8..fafe1982 100644 --- a/nixos/common/services/snapper.nix +++ b/nixos/common/services/snapper.nix @@ -3,40 +3,40 @@ services.snapper = { snapshotRootOnBoot = true; - cleanupInterval = "1d"; + cleanupInterval = "1h"; 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; + 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; + 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; + 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"; }; };