fixup! cluster/lib: implement simulacrum options
This commit is contained in:
parent
28aa2b0834
commit
52ead4b52f
2 changed files with 17 additions and 1 deletions
|
@ -57,10 +57,17 @@ in
|
||||||
deps = mkOption {
|
deps = mkOption {
|
||||||
description = "Other services to include.";
|
description = "Other services to include.";
|
||||||
type = with types; listOf str;
|
type = with types; listOf str;
|
||||||
|
default = [];
|
||||||
};
|
};
|
||||||
settings = mkOption {
|
settings = mkOption {
|
||||||
description = "Additional NixOS test configuration.";
|
description = "NixOS test configuration.";
|
||||||
type = types.deferredModule;
|
type = types.deferredModule;
|
||||||
|
default.testScript = lib.mkDefault "assert False";
|
||||||
|
};
|
||||||
|
augments = mkOption {
|
||||||
|
description = "Cluster augments (will be propagated).";
|
||||||
|
type = types.deferredModule;
|
||||||
|
default = {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
9
cluster/lib/testing.nix
Normal file
9
cluster/lib/testing.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
options.simulacrum = lib.mkOption {
|
||||||
|
description = "Whether we are in the Simulacrum.";
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue