With 23.05.3165.9075cba53e86 (Stoat)
, and
nixos-rebuild build-vm -I nixos-config=configuration.nix
I’m seeing a strange error when trying to build with nftables, and it seems like a bug to me:
ruleset.conf:5:17-17: Error: Could not process rule: No such file or directory
flowtable f {
^
ruleset.conf:41:34-48: Error: Could not process rule: No such file or directory
ip protocol { tcp, udp } flow offload @f
^^^^^^^^^^^^^^^
error: builder for '/nix/store/jyzhwn1a2i532cw4jfjr0cpv5q083gy9-nftables-rules.drv' failed with exit code 1;
last 6 log lines:
> ruleset.conf:5:17-17: Error: Could not process rule: No such file or directory
> flowtable f {
> ^
> ruleset.conf:41:34-48: Error: Could not process rule: No such file or directory
> ip protocol { tcp, udp } flow offload @f
> ^^^^^^^^^^^^^^^
And the output of nix log
is also pretty unhelpful: gist:10464d2e767fcdda8a5e0474495e1ec3 · GitHub (nix log /nix/store/jyzhwn1a2i532cw4jfjr0cpv5q083gy9-nftables-rules.drv
).
What does this error mean and what’s the solution?