Skip to content

Commit 02590c9

Browse files
committed
nixos/qemu-vm: support nix run
1 parent e6cbcc2 commit 02590c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nixos/modules/virtualisation/qemu-vm.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ in
702702

703703
services.qemuGuest.enable = cfg.qemu.guestAgent.enable;
704704

705-
system.build.vm = pkgs.runCommand "nixos-vm" { preferLocalBuild = true; }
705+
system.build.vm = pkgs.runCommand "run-${config.system.name}-vm" { preferLocalBuild = true; }
706706
''
707707
mkdir -p $out/bin
708708
ln -s ${config.system.build.toplevel} $out/system

0 commit comments

Comments
 (0)