[virtualbox] Add vb group to users

This commit is contained in:
Tibo De Peuter 2023-11-10 13:53:46 +01:00
parent 553b973bb4
commit 523a4be565
2 changed files with 15 additions and 2 deletions

View file

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

View file

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