aboutsummaryrefslogtreecommitdiff
path: root/home-manager/ssh-agent/default.nix
blob: 5016b049f622ae05ad98d62e6a8c0055a2cb117e (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{ config, ... }:
{
	# Comments are for NixOS 25.11
	programs.ssh = {
		enable = true;
		#---- These will be removed
		addKeysToAgent = "yes";

		# enableDefaultConfig = false;
		
		extraConfig = ''
			identitiesOnly yes
  	'';
  	#-------------------------

		matchBlocks = {
			"*" = {
		#---- This will be enables
				# addKeysToAgent = "yes";
  	#-------------------------
				forwardAgent = false;
			  serverAliveInterval = 0;
			  serverAliveCountMax = 3;
				identitiesOnly = true;
			};

			"github.com" = {
				hostname = "github.com";
				user = "git";
				identityFile = "~/.ssh/commits";
			};

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

			"theke.ml" = {
				hostname = "theke.ml";
				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.