fixup the win10 desktop file

This commit is contained in:
Daylin Morgan 2024-06-04 15:56:05 -05:00
parent 99a811084b
commit bcc401f812
Signed by: daylin
GPG key ID: 950D13E9719334AD
2 changed files with 25 additions and 13 deletions

View file

@ -1,17 +1,29 @@
{ config, mkOizysModule, pkgs,... }:
{
config,
mkOizysModule,
pkgs,
...
}:
let
# TODO: polish this up
win10vm = pkgs.stdenvNoCC.mkDerivation {
win10vm = pkgs.stdenvNoCC.mkDerivation rec {
name = "win10vm";
unpackPhase = "true";
buildPhase = "mkdir $out";
version = "unstable";
windows10Logo = pkgs.fetchurl {
url = "https://upload.wikimedia.org/wikipedia/commons/c/c7/Windows_logo_-_2012.png";
hash = "sha256-uVNgGUo0NZN+mUmvMzyk0HKnhx64uqT4YWGSdeBz3T4=";
};
desktopItem = pkgs.makeDesktopItem {
name = "win10vm";
exec = "VBoxManage startvm win10";
# icon = ""; # TODO: add windows icon
icon = "${windows10Logo}";
desktopName = "Windows 10 VM";
};
installPhase = ''
install -Dm0644 {${desktopItem},$out}/share/applications/win10vm.desktop
'';
};
in
mkOizysModule config "vbox" {