about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorAlexandre Badez <alexandre@badez.eu>2024-07-02 17:52:53 +0200
committerAlexandre Badez <alexandre@badez.eu>2024-07-03 13:52:34 +0200
commite37b07ffba345ef8d4c1efc34a912def515a5798 (patch)
tree99e97275031bf5bafd8be3a40575b73f9ed684cc /nixos
parent0c8019108141de3cf5be25d330dbba6ca0c2816d (diff)
nixos/snapper: fix timeline options type
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/misc/snapper.nix24
1 files changed, 12 insertions, 12 deletions
diff --git a/nixos/modules/services/misc/snapper.nix b/nixos/modules/services/misc/snapper.nix
index 0f041c0ea5821..fc57683de3280 100644
--- a/nixos/modules/services/misc/snapper.nix
+++ b/nixos/modules/services/misc/snapper.nix
@@ -96,48 +96,48 @@ let
     };
 
     TIMELINE_LIMIT_HOURLY = mkOption {
-      type = types.str;
-      default = "10";
+      type = types.int;
+      default = 10;
       description = ''
         Limits for timeline cleanup.
       '';
     };
 
     TIMELINE_LIMIT_DAILY = mkOption {
-      type = types.str;
-      default = "10";
+      type = types.int;
+      default = 10;
       description = ''
         Limits for timeline cleanup.
       '';
     };
 
     TIMELINE_LIMIT_WEEKLY = mkOption {
-      type = types.str;
-      default = "0";
+      type = types.int;
+      default = 0;
       description = ''
         Limits for timeline cleanup.
       '';
     };
 
     TIMELINE_LIMIT_MONTHLY = mkOption {
-      type = types.str;
-      default = "10";
+      type = types.int;
+      default = 10;
       description = ''
         Limits for timeline cleanup.
       '';
     };
 
     TIMELINE_LIMIT_QUARTERLY = mkOption {
-      type = types.str;
-      default = "0";
+      type = types.int;
+      default = 0;
       description = ''
         Limits for timeline cleanup.
       '';
     };
 
     TIMELINE_LIMIT_YEARLY = mkOption {
-      type = types.str;
-      default = "10";
+      type = types.int;
+      default = 10;
       description = ''
         Limits for timeline cleanup.
       '';