put win10vm in proper module

This commit is contained in:
Daylin Morgan 2024-06-03 10:30:27 -05:00
parent e1171c8f73
commit 9e3eefee6a
Signed by: daylin
GPG key ID: 950D13E9719334AD
2 changed files with 18 additions and 17 deletions

View file

@ -4,22 +4,7 @@
mkOizysModule, mkOizysModule,
... ...
}: }:
let
# TODO: polish this up
win10vm = pkgs.stdenvNoCC.mkDerivation {
name = "win10vm";
unpackPhase = "true";
buildPhase = "mkdir $out";
version = "unstable";
desktopItem = pkgs.makeDesktopItem {
name = "win10vm";
exec = "VBoxManage startvm win10";
# icon = ""; # TODO: add windows icon
desktopName = "Windows 10 VM";
};
};
in
mkOizysModule config "docker" { mkOizysModule config "docker" {
virtualisation.docker.enable = true; virtualisation.docker.enable = true;
environment.systemPackages = (with pkgs; [ lazydocker]) ++ [ win10vm]; environment.systemPackages = with pkgs; [ lazydocker];
} }

View file

@ -1,7 +1,23 @@
{ config, mkOizysModule, ... }: { config, mkOizysModule, pkgs,... }:
let
# TODO: polish this up
win10vm = pkgs.stdenvNoCC.mkDerivation {
name = "win10vm";
unpackPhase = "true";
buildPhase = "mkdir $out";
version = "unstable";
desktopItem = pkgs.makeDesktopItem {
name = "win10vm";
exec = "VBoxManage startvm win10";
# icon = ""; # TODO: add windows icon
desktopName = "Windows 10 VM";
};
};
in
mkOizysModule config "vbox" { mkOizysModule config "vbox" {
virtualisation.virtualbox = { virtualisation.virtualbox = {
host.enable = true; host.enable = true;
}; };
users.extraGroups.vboxusers.members = [ "daylin" ]; users.extraGroups.vboxusers.members = [ "daylin" ];
environment.systemPackages = [ win10vm ];
} }