From d936ff9efa3b28babef28ce31314a75b079a13d9 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 24 Dec 2024 09:28:14 -0600 Subject: [PATCH] actually update desktop file --- hosts/othalan/virt/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/hosts/othalan/virt/default.nix b/hosts/othalan/virt/default.nix index 760619e..b3c06ff 100644 --- a/hosts/othalan/virt/default.nix +++ b/hosts/othalan/virt/default.nix @@ -16,7 +16,7 @@ let ); }; win-desktop = pkgs.stdenvNoCC.mkDerivation rec { - name = "win10vm"; + name = "win11-vm"; unpackPhase = "true"; version = "unstable"; windows10Logo = pkgs.fetchurl { @@ -25,13 +25,14 @@ let }; desktopItem = pkgs.makeDesktopItem { - name = "win10vm"; - exec = "VBoxManage startvm win10"; + name = "win11-vm"; + # exec = "VBoxManage startvm win10"; + exec = "${pkgs.libvirt}/bin/virsh start win11 && ${pkgs.virt-viewer}/bin/virt-viewer --wait -c qemu:///system win11 && ${pkgs.libvirt}/bin/virsh shutdown win11"; icon = "${windows10Logo}"; - desktopName = "Windows 10 VM"; + desktopName = "Windows 11 VM"; }; installPhase = '' - install -Dm0644 {${desktopItem},$out}/share/applications/win10vm.desktop + install -Dm0644 {${desktopItem},$out}/share/applications/win11vm.desktop ''; };