fix: add when and start_in option

This commit is contained in:
technofab 2024-01-14 17:17:24 +01:00
parent 1b963cb641
commit f3485837ce
2 changed files with 9 additions and 0 deletions

View file

@ -46,6 +46,7 @@
"test" = { "test" = {
stage = "test"; stage = "test";
# wait an hour so the image builds # wait an hour so the image builds
when = "delayed";
start_in = "1 hour"; start_in = "1 hour";
deps = [pkgs.hello pkgs.curl]; deps = [pkgs.hello pkgs.curl];
script = [ script = [

View file

@ -63,6 +63,14 @@
type = types.str; type = types.str;
default = cfg.default-nix-image; 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 { in {
options = with lib; { options = with lib; {