mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 17:24:35 +00:00
Add primary user to vboxusers group
This commit is contained in:
parent
04b6f8f64f
commit
b130aec6d6
|
@ -4,6 +4,7 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
|
cfgUser = config.myOptions.system.username;
|
||||||
cfg = config.myOptions.home-manager.programs.applications.virtualbox;
|
cfg = config.myOptions.home-manager.programs.applications.virtualbox;
|
||||||
deviceType = config.myOptions.device.roles.type;
|
deviceType = config.myOptions.device.roles.type;
|
||||||
acceptedTypes = ["laptop" "desktop"];
|
acceptedTypes = ["laptop" "desktop"];
|
||||||
|
@ -16,5 +17,7 @@ in {
|
||||||
# if gui is desired, it can be installed separately on a per-user basis
|
# if gui is desired, it can be installed separately on a per-user basis
|
||||||
headless = true;
|
headless = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.extraGroups.vboxusers.members = [ "${cfgUser}" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue