introduce new host
This commit is contained in:
		
							parent
							
								
									d69c9c2a10
								
							
						
					
					
						commit
						a1eb889f50
					
				
					 5 changed files with 82 additions and 3 deletions
				
			
		|  | @ -13,7 +13,7 @@ let | |||
| in | ||||
| { | ||||
|   options.${namespace}.submodules.basics = with types; { | ||||
|     enable = mkBoolOpt false "Whether or not to enable basic configuration."; | ||||
|     enable = mkEnableOption "Whether or not to enable basic configuration."; | ||||
|   }; | ||||
| 
 | ||||
|   config = mkIf cfg.enable { | ||||
|  | @ -29,7 +29,7 @@ in | |||
|       #optional | ||||
|       pciutils | ||||
|       usbutils | ||||
|       htop | ||||
|       btop | ||||
|     ]; | ||||
| 
 | ||||
|     ${namespace} = { | ||||
|  |  | |||
|  | @ -24,7 +24,7 @@ in | |||
|     environment.systemPackages = with pkgs; [ | ||||
|       git | ||||
|       gitAndTools.gh | ||||
|       gitbutler | ||||
|       # gitbutler | ||||
|     ]; | ||||
| 
 | ||||
|     ${namespace}.home.extraOptions = { | ||||
|  |  | |||
|  | @ -48,6 +48,11 @@ in | |||
|     icon = mkOpt (nullOr package) defaultIcon "The profile picture to use for the user."; | ||||
|     extraGroups = mkOpt (listOf str) [ ] "Groups for the user to be assigned."; | ||||
|     extraOptions = mkOpt attrs { } (mdDoc "Extra options passed to `users.users.<name>`."); | ||||
|     trustedPublicKeys = mkOption { | ||||
|       default = [ ]; | ||||
|       type = nullOr (listOf str); | ||||
|       description = "Trusted public keys for this user for the machine"; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   config = { | ||||
|  | @ -92,6 +97,8 @@ in | |||
|       # system to select). | ||||
|       uid = 1000; | ||||
| 
 | ||||
|       openssh.authorizedKeys.keys = cfg.trustedPublicKeys; | ||||
| 
 | ||||
|       extraGroups = [ "steamcmd" ] ++ cfg.extraGroups; | ||||
|     } // cfg.extraOptions; | ||||
|   }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue