blob: 728bd81cf84b77e2ec6c3df86915caa108ba0f83 (
plain) (
blame)
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
|
{ ... }:
{
boot.tmp.cleanOnBoot = true;
services.fail2ban = {
enable = true;
ignoreIP = [
"10.100.0.0/24" # wireguard
];
bantime = "1h";
bantime-increment = {
enable = true;
maxtime = "168h";
factor = "4";
};
};
virtualisation.podman = {
enable = true;
dockerCompat = true;
autoPrune.enable = true;
autoPrune.flags = [
"--all"
];
defaultNetwork.settings.dns_enabled = true;
};
virtualisation.oci-containers.backend = "podman";
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "prohibit-password";
};
openFirewall = true;
hostKeys = [
{
path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519";
}
];
};
}
|