flake.nix: enable `nix run ...-vm`

which still doesn't work
This commit is contained in:
Astro 2022-01-20 03:15:04 +01:00
parent 292042b7d2
commit 53ac1caf13
1 changed files with 5 additions and 1 deletions

View File

@ -188,7 +188,11 @@
"${host}-sdImage" = config.system.build.sdImage;
} //
nixpkgs.lib.optionalAttrs (config.system.build ? vm) {
"${host}-vm" = config.system.build.vm;
# TODO: containers still lack a `/kernel`
"${host}-vm" = config.system.build.vm
.overrideAttrs (oa: {
meta.mainProgram = "run-${host}-vm";
});
}
) {} (builtins.attrNames self.nixosConfigurations)
) self.legacyPackages;