aboutsummaryrefslogtreecommitdiff
path: root/home-manager/ssh-agent/default.nix
blob: ae22c8f3e9ffbd6508184b41536274293a0f2ccf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
	programs.ssh = {
		enable = true;
		addKeysToAgent = "yes";

		extraConfig = ''
			IdentitiesOnly yes
		'';
		
		matchBlocks = {
			"aethrvmn.gr" = {
				hostname = "aethrvmn.gr";
				identityFile = "~/.ssh/connections";
			};

			"apo.theke.ml" = {
				hostname = "apo.theke.ml";
				user = "git";
				port = 222;
				identityFile = "~/.ssh/theke";
			};

			"code.aethrvmn.gr" = {
				hostname = "code.aethrvmn.gr";
				identityFile = "~/.ssh/commits";
			};

			"velor.gr" = {
				hostname = "velor.gr";
				identityFile = "~/.ssh/velor";
			};
		};
	};
}
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.