nixos/qemu-vm: support nix run

This commit is contained in:
worldofpeace 2020-09-06 14:57:51 -04:00
parent e6cbcc2ac1
commit 02590c9620

View file

@ -702,7 +702,7 @@ in
services.qemuGuest.enable = cfg.qemu.guestAgent.enable;
system.build.vm = pkgs.runCommand "nixos-vm" { preferLocalBuild = true; }
system.build.vm = pkgs.runCommand "run-${config.system.name}-vm" { preferLocalBuild = true; }
''
mkdir -p $out/bin
ln -s ${config.system.build.toplevel} $out/system