refactor: read the release environment from the crate build and generate the sample machine apps
This commit is contained in:
1 parent
59f2b12cb8
commit
d4bd3b4b76
2 files changed
+61
-74
No files matched your search
@@ -9,18 +9,18 @@ let
|
||||
networking.hostName = "bootvine-${machineName}";
|
||||
};
|
||||
|
||||
machineNames = [
|
||||
"slow-services"
|
||||
"text-console"
|
||||
"scripted-initrd"
|
||||
"encrypted-volume"
|
||||
"failures"
|
||||
];
|
||||
machineDescriptions = {
|
||||
slow-services = "slow and failing units, a held initrd probe and a greetd login";
|
||||
text-console = "the slow units without a display manager, handing over at the default target";
|
||||
scripted-initrd = "the slow units with the scripted initrd, so bootvine starts in stage 2";
|
||||
encrypted-volume = "a LUKS volume unlocked in the initrd with the passphrase 'sample passphrase'";
|
||||
failures = "units that fail in every way systemd reports, each with journal messages";
|
||||
};
|
||||
|
||||
machines = lib.genAttrs machineNames machineModule;
|
||||
machines = lib.mapAttrs (machineName: _: machineModule machineName) machineDescriptions;
|
||||
in
|
||||
{
|
||||
inherit machines;
|
||||
inherit machines machineDescriptions;
|
||||
|
||||
sampleUnits = import ./slow-services/sample-units.nix;
|
||||
|
||||
|
||||
Reference in new issue
Block a user