helm/modules/desktop/apps/vm.nix

27 lines
676 B
Nix
Raw Normal View History

2020-03-28 22:48:43 -07:00
# modules/desktop/apps/vm.nix
#
# For testing software or building it on other OSes. If I find out how to get
# macOS on qemu/libvirt I'd be happy to leave virtualbox behind.
{ config, options, lib, pkgs, ... }:
with lib;
{
options.modules.desktop.apps.vm = {
enable = mkOption {
type = types.bool;
default = false;
};
};
# TODO Figure out macOS guest on libvirt/qemu instead
config = mkIf config.modules.desktop.apps.vm.enable {
virtualisation.virtualbox.host = {
enable = true;
# urg, takes so long to build, but needed for macOS guest
enableExtensionPack = true;
2020-03-28 22:48:43 -07:00
};
my.user.extraGroups = [ "vboxusers" ];
};
}