Skip to content

Commit

Permalink
nixos/nix-optimize: allow single string for dates, require singleLineStr
Browse files Browse the repository at this point in the history
  • Loading branch information
SFrijters committed Jan 6, 2025
1 parent 9e6f472 commit 67f1782
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nixos/modules/services/misc/nix-optimise.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ in
};

dates = lib.mkOption {
default = ["03:45"];
type = with lib.types; listOf str;
default = "03:45";
type = with lib.types; either singleLineStr (listOf singleLineStr);
example = "weekly";
description = ''
Specification (in the format described by
{manpage}`systemd.time(7)`) of the time at
Expand Down

0 comments on commit 67f1782

Please sign in to comment.