Re:OpenSnitch is a GNU/Linux interactive application firewall
by mubu on Saturday August 10, 2024 @10:27PM
(#41213611)
Did you achieve this using the OpenSnitch Nix options over at search.nixos.org/options ?
Re:OpenSnitch is a GNU/Linux interactive application firewall
by stusmall on Sunday August 11, 2024 @09:23AM
(#41215947)
Yup. My configs can be found here: https://github.com/stusmall/nixos
I tend to put all the random grab bags rules needed for basic functionality in the opensnitch.nix module. If a package needed rules it gets a module and they go in there. Check the signal.nix module for a good example
By integrating with the package manager that hasn't been an issue. Once I got through the initial work of setting up my whitelists I just have a little bit of effort each time I add a new package to my nix configs. If I don't want to take on the effort of adding a whitelist to my nix config, I can just add a temporary whitelist that lasts until the next reboot.
It was a steep learning curve and a lot of work, but now its a breeze to maintain.