Firewalld-nix: FirewallD for NixOS

Hello everyone,

I would like to introduce firewalld-nix that I’ve been working for the past few days, which contains:

  • a working firewalld derivation with working GUI applet
  • a NixOS module for declarative configurations

It’s not complete and has rough edges, but it should work for simple use cases now.

https://git.sr.ht/~prince213/firewalld-nix

As a side note, firewalld related issues is currently being tracked in

17 Likes

Nice work! Could you add some more to the example in the readme showing more of the use of the rules/zones/etc?

2 Likes

Hi @adamcstephens, I’ve just added an example configuration example.nix.

https://git.sr.ht/~prince213/firewalld-nix/tree/main/item/example.nix

5 Likes

Zones shipped with FirewallD such as drop or block have been converted to Nix.
This means that you can modify the default configurations of zones rather than always overriding them.

1 Like