mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 10:13:14 -06:00
16 lines
329 B
Nix
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"];
|
|
};
|
|
}
|