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

@ -6,5 +6,5 @@
}:
mkOizysModule config "docker" {
virtualisation.docker.enable = true;
environment.systemPackages = with pkgs; [ lazydocker];
environment.systemPackages = with pkgs; [ lazydocker ];
}

View file

@ -1,18 +1,30 @@
{ config, mkOizysModule, pkgs,... }:
{
config,
mkOizysModule,
pkgs,
...
}:
let
# TODO: polish this up
win10vm = pkgs.stdenvNoCC.mkDerivation {
name = "win10vm";
unpackPhase = "true";
buildPhase = "mkdir $out";
version = "unstable";
desktopItem = pkgs.makeDesktopItem {
win10vm = pkgs.stdenvNoCC.mkDerivation rec {
name = "win10vm";
exec = "VBoxManage startvm win10";
# icon = ""; # TODO: add windows icon
desktopName = "Windows 10 VM";
unpackPhase = "true";
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 = "${windows10Logo}";
desktopName = "Windows 10 VM";
};
installPhase = ''
install -Dm0644 {${desktopItem},$out}/share/applications/win10vm.desktop
'';
};
};
in
mkOizysModule config "vbox" {
virtualisation.virtualbox = {