1 { pkgs, lib, config, machineName, ... }:
3 inherit (builtins.extraBuiltins) pass-chomp;
4 croc = config.services.croc;
7 networking.nftables.ruleset = ''
8 add rule inet filter net2fw tcp dport {${lib.concatMapStringsSep "," toString croc.ports}} counter accept comment "croc"
12 pass = pass-chomp "machines/${machineName}/croc/pass";