fixup! cluster/lib: implement simulacrum options

This commit is contained in:
Max Headroom 2024-07-23 02:43:55 +02:00
parent 28aa2b0834
commit 52ead4b52f
2 changed files with 17 additions and 1 deletions

View file

@ -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
View file

@ -0,0 +1,9 @@
{ lib, ... }:
{
options.simulacrum = lib.mkOption {
description = "Whether we are in the Simulacrum.";
type = lib.types.bool;
default = false;
};
}