[virtualbox] Add vb group to users
This commit is contained in:
parent
e24ac8bd16
commit
039f0d6bd3
2 changed files with 15 additions and 2 deletions
|
@ -28,8 +28,12 @@ in {
|
|||
x11 = true;
|
||||
};
|
||||
};
|
||||
users.extraGroups.vboxusers.members = [
|
||||
"user-with-access-to-virtualbox"
|
||||
|
||||
users.groups.vboxusers = {};
|
||||
|
||||
sisyphus.users.wantedGroups = [
|
||||
config.users.groups.vboxusers.name # The group we defined earlier
|
||||
config.users.groups.dialout.name # Serial Port
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./tdpeuter
|
||||
];
|
||||
|
||||
options.sisyphus.users.wantedGroups = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [ ];
|
||||
example = [ config.users.groups.wheel.name ];
|
||||
description = "Groups to which a user should be added";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue