oizys/modules/virtualization/virtualbox.nix

24 lines
582 B
Nix
Raw Normal View History

2024-06-03 10:30:27 -05:00
{ 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
2024-03-21 15:59:10 -05:00
mkOizysModule config "vbox" {
virtualisation.virtualbox = {
host.enable = true;
};
2024-05-06 14:32:00 -05:00
users.extraGroups.vboxusers.members = [ "daylin" ];
2024-06-03 10:30:27 -05:00
environment.systemPackages = [ win10vm ];
2024-03-21 15:59:10 -05:00
}