Stumped by shorewall.configs


As far as I understand from:

You should specify configs as:

services.shorewall.configs = {
   "shorewall.conf" = '' config lines. ... '';

This however fails with:

error: value is the partially applied built-in function 'mapAttrs' while a set was expected

       at /nix/store/22aq7ifkxk95achgwbb8ygjklgcwygvn-source/lib/modules.nix:476:44:

          475|         options = {};
          476|         config = addFreeformType (addMeta (removeAttrs m ["_file" "key" "disabledModules" "require" "imports" "freeformType"]));
             |                                            ^
          477|       };
(use '--show-trace' to show detailed location information)
/run/current-system/sw/bin/nixos-container: failed to build container from flake '.'

Not sure what I’m missing here :confused:


From the description that looks correct to me. If you figure it out please update the option to contain an example that demonstrates this more clearly.

@julm can you help out here?

Well I didn’t figure it out yet :frowning:
I hoped someone more experienced would jump in but my guess is no one really uses shorewall anymore :slight_smile:

Hosted by Flying Circus.