ssh: include private configs
This commit is contained in:
		
							parent
							
								
									569298b04a
								
							
						
					
					
						commit
						f792fba544
					
				
					 1 changed files with 14 additions and 20 deletions
				
			
		
							
								
								
									
										16
									
								
								user/ssh.nix
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								user/ssh.nix
									
										
									
									
									
								
							| 
						 | 
					@ -1,16 +1,8 @@
 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  config,
 | 
					 | 
				
			||||||
  pkgs,
 | 
					 | 
				
			||||||
  lib,
 | 
					 | 
				
			||||||
  ...
 | 
					 | 
				
			||||||
}:
 | 
					 | 
				
			||||||
let
 | 
					 | 
				
			||||||
  inherit (config.my) username mail;
 | 
					 | 
				
			||||||
in
 | 
					 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  config = {
 | 
					  config = {
 | 
				
			||||||
    programs.ssh.enable = true;
 | 
					    programs.ssh = {
 | 
				
			||||||
    programs.ssh.matchBlocks = {
 | 
					      enable = true;
 | 
				
			||||||
 | 
					      matchBlocks = {
 | 
				
			||||||
        monolith = {
 | 
					        monolith = {
 | 
				
			||||||
          user = "lelgenio";
 | 
					          user = "lelgenio";
 | 
				
			||||||
          hostname = "monolith.lelgenio.com";
 | 
					          hostname = "monolith.lelgenio.com";
 | 
				
			||||||
| 
						 | 
					@ -22,5 +14,7 @@ in
 | 
				
			||||||
          port = 9022;
 | 
					          port = 9022;
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					      includes = [ "~/Wopus/.ssh.config" ];
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue