88 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			88 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  config,
 | 
						|
  lib,
 | 
						|
  pkgs,
 | 
						|
  ...
 | 
						|
}:
 | 
						|
{
 | 
						|
 | 
						|
  home-manager.users.mysaa = { lib, ... }: {
 | 
						|
  programs.ssh = {
 | 
						|
    enable = true;
 | 
						|
    matchBlocks = {
 | 
						|
      git-hadoly = {
 | 
						|
        host = "git-ssh.hadoly.fr";
 | 
						|
        hostname = "git-ssh.hadoly.fr";
 | 
						|
        identityFile = "/run/secrets/ssh/mysaa@git.hadoly.fr";
 | 
						|
        identitiesOnly = true;
 | 
						|
        port = 6900;
 | 
						|
      };
 | 
						|
      gitlab-aliens = {
 | 
						|
        host = "gitlab.aliens-lyon.fr";
 | 
						|
        hostname = "gitlab.aliens-lyon.fr";
 | 
						|
        identityFile = "/run/secrets/ssh/savrillo@gitlab.aliens-lyon.fr";
 | 
						|
        identitiesOnly = true;
 | 
						|
      };
 | 
						|
      github = {
 | 
						|
        host = "github.com";
 | 
						|
        hostname = "github.com";
 | 
						|
        identityFile = "/run/secrets/ssh/MysaaJava@github.com";
 | 
						|
        identitiesOnly = true;
 | 
						|
      };
 | 
						|
      gitlab = {
 | 
						|
        host = "gitlab.inria.fr";
 | 
						|
        hostname = "gitlab.inria.fr";
 | 
						|
        identityFile = "/run/secrets/ssh/savrillo@gitlab.inria.fr";
 | 
						|
        identitiesOnly = true;
 | 
						|
        user = "savrillo";
 | 
						|
      };
 | 
						|
      ens = {
 | 
						|
        host = "ens";
 | 
						|
        hostname = "ssh.ens-lyon.fr";
 | 
						|
        identityFile = "/run/secrets/ssh/savrillo@ssh.ens-lyon.fr";
 | 
						|
        identitiesOnly = true;
 | 
						|
        user = "savrillo";
 | 
						|
      };
 | 
						|
      protomolecule = {
 | 
						|
        host = "protomolecule";
 | 
						|
        hostname = "aliens-lyon.fr";
 | 
						|
        identityFile = "/run/secrets/ssh/mysaa@protomolecule.aliens-lyon.fr";
 | 
						|
        identitiesOnly = true;
 | 
						|
        user = "mysaa";
 | 
						|
        port = 2222;
 | 
						|
        proxyJump = "ens";
 | 
						|
      };
 | 
						|
      teapot = {
 | 
						|
        host = "teapot";
 | 
						|
        hostname = "teapot.ens-lyon.fr";
 | 
						|
        identityFile = "/run/secrets/ssh/enverts@teapot.ens-lyon.fr";
 | 
						|
        identitiesOnly = true;
 | 
						|
        user = "enverts";
 | 
						|
      };
 | 
						|
      midori = {
 | 
						|
        host = "midori";
 | 
						|
        hostname = "midori.bernard.com.de";
 | 
						|
        identityFile = "/run/secrets/ssh/mysaa@midori.bernard.com.de";
 | 
						|
        identitiesOnly = true;
 | 
						|
        user = "mysaa";
 | 
						|
      };
 | 
						|
 | 
						|
      nasvrillon-local = lib.hm.dag.entryBefore ["nasvrillon-remote"] {
 | 
						|
        match = ''host nasvrillon exec "nc -w 1 -z 192.168.1.39 5001"'';
 | 
						|
        hostname = "192.168.1.39";
 | 
						|
        port = 22;
 | 
						|
      };
 | 
						|
      nasvrillon-remote = {
 | 
						|
        host = "nasvrillon";
 | 
						|
        hostname = "nasvrillon.myqnapcloud.com";
 | 
						|
        user = "samy";
 | 
						|
        port = 6962;
 | 
						|
        extraOptions."ConnectTimeout" = "10";
 | 
						|
        addressFamily = "inet";
 | 
						|
      };
 | 
						|
 | 
						|
    };
 | 
						|
  };
 | 
						|
  };
 | 
						|
}
 |