made nix-secrets input comment-out-able.
This commit is contained in:
		
							parent
							
								
									f27b5ac056
								
							
						
					
					
						commit
						6147ddb903
					
				
					 10 changed files with 51 additions and 27 deletions
				
			
		| 
						 | 
				
			
			@ -16,8 +16,11 @@
 | 
			
		|||
    kitty.terminfo
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  users.users.root.openssh.authorizedKeys.keys =
 | 
			
		||||
    lib.mkDefault (configLib.dirToStrings "${inputs.nix-secrets}/public-keys");
 | 
			
		||||
  users.users.root.openssh.authorizedKeys.keys = lib.mkDefault (
 | 
			
		||||
    if inputs ? nix-secrets
 | 
			
		||||
    then (configLib.dirToStrings "${inputs.nix-secrets}/public-keys")
 | 
			
		||||
    else []
 | 
			
		||||
  );
 | 
			
		||||
  # if it can log into root, it should also be able to log in to the main user.
 | 
			
		||||
  users.users.${config.host.user}.openssh.authorizedKeys.keys =
 | 
			
		||||
    config.users.users.root.openssh.authorizedKeys.keys;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue