nixos/netbird: add iptables/nftables for debug bundle handling

This commit is contained in:
Krzysztof Nazarewski 2025-06-26 11:55:18 +02:00
parent 70e91e0956
commit 17c0c3293d
No known key found for this signature in database
GPG Key ID: 985C1ACE088CC9F4

View File

@ -29,6 +29,7 @@ let
optional
optionalAttrs
optionalString
optionals
toShellVars
versionAtLeast
versionOlder
@ -515,7 +516,14 @@ in
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
path = optional (!config.services.resolved.enable) pkgs.openresolv;
path =
optionals (!config.services.resolved.enable) [ pkgs.openresolv ]
# useful for `netbird debug` system info gathering
++ optionals config.networking.nftables.enable [ pkgs.nftables ]
++ optionals (!config.networking.nftables.enable) [
pkgs.iptables
pkgs.ipset
];
serviceConfig = {
ExecStart = "${getExe client.wrapper} service run";