about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2024-01-20 13:16:39 +0100
committerJanne Heß <janne@hess.ooo>2024-01-20 13:16:39 +0100
commite04524a931766d943e7ab1c13d763bcc913608d6 (patch)
tree1fa981aa3568c55956f3f8dc23a35d9a3894cd5a /nixos
parent23151743843ecc95ffdd87298df6121090c0b698 (diff)
nixos/nix-gc: Use singleLineStr where possible
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/misc/nix-gc.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/misc/nix-gc.nix b/nixos/modules/services/misc/nix-gc.nix
index c786287587520..de6bd76c7eb9d 100644
--- a/nixos/modules/services/misc/nix-gc.nix
+++ b/nixos/modules/services/misc/nix-gc.nix
@@ -19,7 +19,7 @@ in
       };
 
       dates = lib.mkOption {
-        type = lib.types.str;
+        type = lib.types.singleLineStr;
         default = "03:15";
         example = "weekly";
         description = lib.mdDoc ''
@@ -33,7 +33,7 @@ in
 
       randomizedDelaySec = lib.mkOption {
         default = "0";
-        type = lib.types.str;
+        type = lib.types.singleLineStr;
         example = "45min";
         description = lib.mdDoc ''
           Add a randomized delay before each garbage collection.
@@ -62,7 +62,7 @@ in
       options = lib.mkOption {
         default = "";
         example = "--max-freed $((64 * 1024**3))";
-        type = lib.types.str;
+        type = lib.types.singleLineStr;
         description = lib.mdDoc ''
           Options given to {file}`nix-collect-garbage` when the
           garbage collector is run automatically.