mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 22:30:44 -06:00
17 lines
330 B
Nix
17 lines
330 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"];
|
|
};
|
|
}
|