forked from jan-leila/nix-config
		
	removed remote user
This commit is contained in:
		
							parent
							
								
									91fe8cc1b4
								
							
						
					
					
						commit
						dfb59a6444
					
				
					 2 changed files with 1 additions and 34 deletions
				
			
		|  | @ -1,6 +1,6 @@ | ||||||
| { inputs, ... }: | { inputs, ... }: | ||||||
| { | { | ||||||
|   imports = [ ./leyla ./ester ./eve ./remote ]; |   imports = [ ./leyla ./ester ./eve ]; | ||||||
| 
 | 
 | ||||||
|   users.mutableUsers = false; |   users.mutableUsers = false; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,33 +0,0 @@ | ||||||
| {  lib, config, ... }: |  | ||||||
| let |  | ||||||
|   cfg = config.users.remote; |  | ||||||
| in |  | ||||||
| { |  | ||||||
|   options.users.remote = { |  | ||||||
|     isNormalUser = lib.mkEnableOption "remote"; |  | ||||||
|   }; |  | ||||||
| 
 |  | ||||||
|   config.users = { |  | ||||||
|     groups.remote = {}; |  | ||||||
| 
 |  | ||||||
|     users.remote = lib.mkMerge [ |  | ||||||
|       { |  | ||||||
|         uid = 2000; |  | ||||||
|         group = "remote"; |  | ||||||
|       } |  | ||||||
| 
 |  | ||||||
|       ( |  | ||||||
|         if cfg.isNormalUser then { |  | ||||||
|           # extraGroups = [ "wheel" ]; |  | ||||||
| 
 |  | ||||||
|           hashedPasswordFile = config.sops.secrets."passwords/remote".path; |  | ||||||
| 
 |  | ||||||
|           isNormalUser = true; |  | ||||||
|           openssh.authorizedKeys.keys = []; |  | ||||||
|         } else { |  | ||||||
|           isSystemUser = true; |  | ||||||
|         } |  | ||||||
|       ) |  | ||||||
|     ]; |  | ||||||
|   }; |  | ||||||
| } |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue