Created
December 15, 2019 03:58
-
-
Save lovesegfault/74d0babbc9a037111fd411d98dfe74aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{config, lib, ...}: { | |
helpers = | |
'' | |
# Helper command to manipulate both the IPv4 and IPv6 tables. | |
ip46tables() { | |
iptables -w "$@" | |
${lib.optionalString config.networking.enableIPv6 '' | |
ip6tables -w "$@" | |
''} | |
} | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment