mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 06:00:45 -06:00
fixup the win10 desktop file
This commit is contained in:
parent
99a811084b
commit
bcc401f812
2 changed files with 25 additions and 13 deletions
|
@ -6,5 +6,5 @@
|
||||||
}:
|
}:
|
||||||
mkOizysModule config "docker" {
|
mkOizysModule config "docker" {
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
environment.systemPackages = with pkgs; [ lazydocker];
|
environment.systemPackages = with pkgs; [ lazydocker ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,18 +1,30 @@
|
||||||
{ config, mkOizysModule, pkgs,... }:
|
{
|
||||||
|
config,
|
||||||
|
mkOizysModule,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
# TODO: polish this up
|
|
||||||
win10vm = pkgs.stdenvNoCC.mkDerivation {
|
win10vm = pkgs.stdenvNoCC.mkDerivation rec {
|
||||||
name = "win10vm";
|
|
||||||
unpackPhase = "true";
|
|
||||||
buildPhase = "mkdir $out";
|
|
||||||
version = "unstable";
|
|
||||||
desktopItem = pkgs.makeDesktopItem {
|
|
||||||
name = "win10vm";
|
name = "win10vm";
|
||||||
exec = "VBoxManage startvm win10";
|
unpackPhase = "true";
|
||||||
# icon = ""; # TODO: add windows icon
|
version = "unstable";
|
||||||
desktopName = "Windows 10 VM";
|
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
|
in
|
||||||
mkOizysModule config "vbox" {
|
mkOizysModule config "vbox" {
|
||||||
virtualisation.virtualbox = {
|
virtualisation.virtualbox = {
|
||||||
|
|
Loading…
Reference in a new issue