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