From 53ac1caf13904508c8504257191fc78a2c2f7987 Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 20 Jan 2022 03:15:04 +0100 Subject: [PATCH] flake.nix: enable `nix run ...-vm` which still doesn't work --- flake.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 31cb1b6d..dce6118f 100644 --- a/flake.nix +++ b/flake.nix @@ -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;