oizys/modules/virtualization/virtualbox.nix
2024-03-14 09:51:27 -05:00

16 lines
329 B
Nix

{
config,
lib,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.oizys.vbox;
in {
options.oizys.vbox.enable = mkEnableOption "enable virtualbox host";
config = mkIf cfg.enable {
virtualisation.virtualbox = {
host.enable = true;
};
users.extraGroups.vboxusers.members = ["daylin"];
};
}