diff options
| author | Alexandre Badez <alexandre@badez.eu> | 2024-06-20 13:32:38 +0200 |
|---|---|---|
| committer | Alexandre Badez <alexandre@badez.eu> | 2024-06-26 14:09:57 +0200 |
| commit | 08f4b8c3fc3092b981d533035b189552e4ca1fb7 (patch) | |
| tree | c483c017b98050b409b668babb8a9d0a3edd1f61 | |
| parent | Merge pull request #322607 from NixOS/backport-322194-to-release-24.05 (diff) | |
| download | nixpkgs-08f4b8c3fc3092b981d533035b189552e4ca1fb7.tar.gz | |
nixos/snapper: add timeline limit options
(cherry picked from commit a1ded8273dd6bfd32a170f10631ac2c65f3bff33)
| -rw-r--r-- | nixos/modules/services/misc/snapper.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/snapper.nix b/nixos/modules/services/misc/snapper.nix index a42fca5b6028..24ffc41aedaa 100644 --- a/nixos/modules/services/misc/snapper.nix +++ b/nixos/modules/services/misc/snapper.nix @@ -78,6 +78,54 @@ let Defines whether hourly snapshots should be created. ''; }; + + TIMELINE_LIMIT_HOURLY = mkOption { + type = types.str; + default = "10"; + description = '' + Limits for timeline cleanup. + ''; + }; + + TIMELINE_LIMIT_DAILY = mkOption { + type = types.str; + default = "10"; + description = '' + Limits for timeline cleanup. + ''; + }; + + TIMELINE_LIMIT_WEEKLY = mkOption { + type = types.str; + default = "0"; + description = '' + Limits for timeline cleanup. + ''; + }; + + TIMELINE_LIMIT_MONTHLY = mkOption { + type = types.str; + default = "10"; + description = '' + Limits for timeline cleanup. + ''; + }; + + TIMELINE_LIMIT_QUARTERLY = mkOption { + type = types.str; + default = "0"; + description = '' + Limits for timeline cleanup. + ''; + }; + + TIMELINE_LIMIT_YEARLY = mkOption { + type = types.str; + default = "10"; + description = '' + Limits for timeline cleanup. + ''; + }; }; in |
