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,
...
}:
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" {
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" {
virtualisation.virtualbox = {
host.enable = true;
};
users.extraGroups.vboxusers.members = [ "daylin" ];
environment.systemPackages = [ win10vm ];
}