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; {