add: more system modules
This commit is contained in:
		
							parent
							
								
									47eb3e0691
								
							
						
					
					
						commit
						793cc3131c
					
				
					 17 changed files with 291 additions and 56 deletions
				
			
		
							
								
								
									
										28
									
								
								system/modules/user/ooks.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								system/modules/user/ooks.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,28 @@ | |||
| { lib, pkgs, config, ... }: | ||||
| 
 | ||||
| let  | ||||
|   ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups; | ||||
|   cfg = config.systemModule.user.ooks; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     users.users.ooks = { | ||||
|       isNormalUser = true; | ||||
|       extraGroups = [ | ||||
|       "wheel" | ||||
|       "video" | ||||
|       "audio" | ||||
|       ] ++ ifTheyExist [ | ||||
|       "git" | ||||
|       "network" | ||||
|       "libvirtd" | ||||
|       "deluge" | ||||
|       ]; | ||||
| 
 | ||||
|     packages = [ pkgs.home-manager ]; | ||||
|     }; | ||||
| 
 | ||||
|     home-manager.users.ooks = import ../../../../home/user/ooks/${config.networking.hostName}; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue