nixos/nix-gc: Use singleLineStr where possible
This commit is contained in:
parent
2315174384
commit
e04524a931
@ -19,7 +19,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
dates = lib.mkOption {
|
dates = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.singleLineStr;
|
||||||
default = "03:15";
|
default = "03:15";
|
||||||
example = "weekly";
|
example = "weekly";
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
@ -33,7 +33,7 @@ in
|
|||||||
|
|
||||||
randomizedDelaySec = lib.mkOption {
|
randomizedDelaySec = lib.mkOption {
|
||||||
default = "0";
|
default = "0";
|
||||||
type = lib.types.str;
|
type = lib.types.singleLineStr;
|
||||||
example = "45min";
|
example = "45min";
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Add a randomized delay before each garbage collection.
|
Add a randomized delay before each garbage collection.
|
||||||
@ -62,7 +62,7 @@ in
|
|||||||
options = lib.mkOption {
|
options = lib.mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "--max-freed $((64 * 1024**3))";
|
example = "--max-freed $((64 * 1024**3))";
|
||||||
type = lib.types.str;
|
type = lib.types.singleLineStr;
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Options given to {file}`nix-collect-garbage` when the
|
Options given to {file}`nix-collect-garbage` when the
|
||||||
garbage collector is run automatically.
|
garbage collector is run automatically.
|
||||||
|
Loading…
Reference in New Issue
Block a user