blob: 5c6d629e4ff57768026e1959227666e86b5bd7c7 (
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
|
{ config, pkgs, ... }:
{
users.users.git = {
isSystemUser = true;
group = "git";
createHome = true;
home = "/srv/git";
shell = "${pkgs.git}/bin/git-shell";
openssh.authorizedKeys.keys = with config.personal.lib.publicKeys.ssh; [
latitude-7490
precision-3571
dragonfly-g4
optiplex-9030
];
};
users.groups.git = { };
services.openssh = {
extraConfig = ''
Match user git
AllowTcpForwarding no
AllowAgentForwarding no
PasswordAuthentication no
PermitTTY no
X11Forwarding no
'';
};
}
|