flake.nix: go even less into self.nixosConfigurations.*.config
This commit is contained in:
parent
314861ffdd
commit
fd41246110
11
flake.nix
11
flake.nix
|
@ -478,8 +478,7 @@
|
|||
let
|
||||
inherit (self.nixosConfigurations.${host}) config;
|
||||
in
|
||||
result //
|
||||
nixos.lib.optionalAttrs (config.system.build ? vm) {
|
||||
result // {
|
||||
# boot any machine in a microvm
|
||||
"${host}-vm" = (self.nixosConfigurations.${host}
|
||||
.extendModules {
|
||||
|
@ -511,9 +510,11 @@
|
|||
];
|
||||
})
|
||||
.config.microvm.declaredRunner;
|
||||
} //
|
||||
nixos.lib.optionalAttrs (config.system.build ? tftproot) {
|
||||
"${host}-tftproot" = config.system.build.tftproot;
|
||||
|
||||
"${host}-tftproot" =
|
||||
if config.system.build ? tftproot
|
||||
then config.system.build.tftproot
|
||||
else throw "No tftproot for ${host}";
|
||||
}
|
||||
) {} (builtins.attrNames self.nixosConfigurations)
|
||||
) self.legacyPackages;
|
||||
|
|
Loading…
Reference in New Issue