helm/modules/desktop/vm/virtualbox.nix
Henrik Lissner a75c64d04a
Rewrite to use flakes
This puts a hard dependency on 20.09, but that's to be expected.
2020-10-11 01:31:33 -04:00

26 lines
617 B
Nix

# modules/desktop/vm/virtualbox.nix
#
# For testing or building software on other OSes. If I find out how to get macOS
# on qemu/libvirt I'd be happy to leave virtualbox behind.
{ options, config, lib, pkgs, ... }:
with lib;
with lib.my;
let cfg = config.modules.desktop.vm.virtualbox;
in {
options.modules.desktop.vm.virtualbox = {
enable = mkBoolOpt false;
};
config = mkIf cfg.enable {
virtualisation.virtualbox.host = {
enable = true;
# urg, takes so long to build, but needed for macOS guest
# enableExtensionPack = true;
};
user.extraGroups = [ "vboxusers" ];
};
}