blob: 96f765c9948f4af780e8739552043d9d2e5489de (
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
|
{
config,
modulesPath,
lib,
pkgs,
...
}@args:
{
imports = [
./bootstrap.nix
];
users.mutableUsers = false;
users.users.git = {
isNormalUser = true;
home = "/var/git";
createHome = true;
description = "Git repository hosting user";
packages = [ pkgs.git ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINPtvI9cG6YLKUWY3R4vg/ky2wAV0izTAkMgWiOS8Tzr him@jakezerrer.com"
];
};
sops = {
defaultSopsFile = ./secrets/secrets.yaml;
defaultSopsFormat = "yaml";
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
secrets = { };
};
networking.firewall = {
allowedTCPPorts = lib.mkForce [
22
80
443
];
};
}
|