[virtualbox] Add vb group to users
This commit is contained in:
		
							parent
							
								
									553b973bb4
								
							
						
					
					
						commit
						523a4be565
					
				
					 2 changed files with 15 additions and 2 deletions
				
			
		|  | @ -28,8 +28,12 @@ in { | ||||||
|         x11 = true; |         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 = [ |   imports = [ | ||||||
|     ./tdpeuter |     ./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…
	
	Add table
		Add a link
		
	
		Reference in a new issue