From 57d05a1cbe4335d7634387484544210cd8daac1f Mon Sep 17 00:00:00 2001 From: isabel Date: Thu, 8 May 2025 13:21:44 +0100 Subject: [PATCH] nixos/nix-optimise: allow dates to be a single line str --- nixos/modules/services/misc/nix-optimise.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/nix-optimise.nix b/nixos/modules/services/misc/nix-optimise.nix index 42f60b77a5b4..3581b95ce18a 100644 --- a/nixos/modules/services/misc/nix-optimise.nix +++ b/nixos/modules/services/misc/nix-optimise.nix @@ -15,7 +15,8 @@ in dates = lib.mkOption { default = [ "03:45" ]; - type = with lib.types; listOf str; + apply = lib.toList; + type = with lib.types; either singleLineStr (listOf str); description = '' Specification (in the format described by {manpage}`systemd.time(7)`) of the time at