summary refs log tree commit diff
path: root/nixos/modules/virtualisation
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2020-09-06 14:57:51 -0400
committerworldofpeace <worldofpeace@protonmail.ch>2020-09-06 14:57:51 -0400
commit02590c96209d374d7f720293fcb8337e17104bc9 (patch)
tree45ff967a5d5a4752ffe288b74fe7e94109ccb2b7 /nixos/modules/virtualisation
parente6cbcc2ac1f042e13d36a5c8f5c89777dad128b5 (diff)
downloadnixpkgs-02590c96209d374d7f720293fcb8337e17104bc9.tar
nixpkgs-02590c96209d374d7f720293fcb8337e17104bc9.tar.gz
nixpkgs-02590c96209d374d7f720293fcb8337e17104bc9.tar.bz2
nixpkgs-02590c96209d374d7f720293fcb8337e17104bc9.tar.lz
nixpkgs-02590c96209d374d7f720293fcb8337e17104bc9.tar.xz
nixpkgs-02590c96209d374d7f720293fcb8337e17104bc9.tar.zst
nixpkgs-02590c96209d374d7f720293fcb8337e17104bc9.zip
nixos/qemu-vm: support nix run
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r--nixos/modules/virtualisation/qemu-vm.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix
index 42e43f5ee02..d3ee3d54b3b 100644
--- a/nixos/modules/virtualisation/qemu-vm.nix
+++ b/nixos/modules/virtualisation/qemu-vm.nix
@@ -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