From f3485837cec0a4e8a695c78979ece8273cb0b784 Mon Sep 17 00:00:00 2001 From: technofab Date: Sun, 14 Jan 2024 17:17:24 +0100 Subject: [PATCH] fix: add `when` and `start_in` option --- flake.nix | 1 + flakeModule.nix | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/flake.nix b/flake.nix index 429983b..a70735a 100644 --- a/flake.nix +++ b/flake.nix @@ -46,6 +46,7 @@ "test" = { stage = "test"; # wait an hour so the image builds + when = "delayed"; start_in = "1 hour"; deps = [pkgs.hello pkgs.curl]; script = [ diff --git a/flakeModule.nix b/flakeModule.nix index 04a5df9..a528dcd 100644 --- a/flakeModule.nix +++ b/flakeModule.nix @@ -63,6 +63,14 @@ type = types.str; default = cfg.default-nix-image; }; + when = mkOption { + type = types.nullOr types.str; + default = null; + }; + start_in = mkOption { + type = types.nullOr types.str; + default = null; + }; }; in { options = with lib; {