nixos/nix-daemon-firewall: Fix firewall checking
This commit is contained in:
@@ -9,13 +9,13 @@ in
|
||||
enable = lib.mkEnableOption "firewalling for outgoing traffic of the nix daemon";
|
||||
|
||||
allowLoopback = lib.mkOption {
|
||||
description = "Whether not not to allow traffic on the loopback interface. Traffic is still subject to protocol/port rules";
|
||||
description = "Whether to allow traffic on the loopback interface. Traffic is still subject to protocol/port rules";
|
||||
default = false;
|
||||
example = true;
|
||||
};
|
||||
|
||||
allowPrivateNetworks = lib.mkOption {
|
||||
description = "Whether not not to allow traffic to local networks. Traffic is still subject to protocol/port rules. Note that this option may break DNS resolution when the DNS resolver is in a local network";
|
||||
description = "Whether to allow traffic to local networks. Traffic is still subject to protocol/port rules. Note that this option may break DNS resolution when the DNS resolver is in a local network";
|
||||
default = true;
|
||||
example = false;
|
||||
};
|
||||
@@ -137,5 +137,9 @@ in
|
||||
}
|
||||
}
|
||||
'';
|
||||
# Not supported by LKL yet so the ruleset check would fail
|
||||
networking.nftables.preCheckRuleset = ''
|
||||
sed -i 's/socket cgroupv2 level 2 @nix_daemon//g' ruleset.conf
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ let
|
||||
hash = hashes.a;
|
||||
};
|
||||
|
||||
# Generates a file but tires to resolve via DNS first
|
||||
# Generates a file but tries to resolve via DNS first
|
||||
resolver = pkgs.writeText "pinger.nix" ''
|
||||
derivation {
|
||||
name = "resolver";
|
||||
|
||||
Reference in New Issue
Block a user