Add primary user to vboxusers group

This commit is contained in:
ItsDrike 2024-07-08 17:47:41 +02:00
parent 04b6f8f64f
commit b130aec6d6
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -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}" ];
};
}