Merge branch 'nixops' of ssh://git.fudo.org:2222/fudosys/NixOS into nixops

This commit is contained in:
Root 2021-04-12 15:43:49 -07:00
commit 0158667056
3 changed files with 14 additions and 4 deletions

View File

@ -20,8 +20,6 @@ in {
"openssh-with-gssapi-8.4p1" # CVE-2021-28041 "openssh-with-gssapi-8.4p1" # CVE-2021-28041
]; ];
fudo.hosts.limina.external-interfaces = [ "enp1s0" ];
networking = { networking = {
interfaces = { interfaces = {
enp1s0 = { useDHCP = true; }; enp1s0 = { useDHCP = true; };
@ -37,14 +35,25 @@ in {
intif2 = { useDHCP = false; }; intif2 = { useDHCP = false; };
}; };
# FIXME: this should be automatic
firewall.trustedInterfaces = [
"intif0"
"intif1"
"intif2"
"lo"
"docker0"
];
nat = { nat = {
enable = true; enable = true;
externalInterface = "enp1s0"; externalInterface = "enp1s0";
internalInterfaces = [ "intif0" ]; internalInterfaces = [ "intif0" "intif1" "intif2" ];
}; };
}; };
fudo = { fudo = {
hosts.limina.external-interfaces = [ "enp1s0" ];
local-network = { local-network = {
enable = true; enable = true;
domain = domain-name; domain = domain-name;

View File

@ -56,7 +56,7 @@ in {
}; };
fail2ban = { fail2ban = {
enable = true; enable = config.networking.firewall.enable;
bantime-increment.enable = true; bantime-increment.enable = true;
}; };

View File

@ -6,6 +6,7 @@ with lib;
let let
cfg = config.fudo.hosts.local-network; cfg = config.fudo.hosts.local-network;
# FIXME: this isn't used, is it?
gatewayServerOpts = { ... }: { gatewayServerOpts = { ... }: {
options = { options = {
enable = mkEnableOption "Turn this host into a network gateway."; enable = mkEnableOption "Turn this host into a network gateway.";