Closed bfcns closed 1 year ago
Hi @phpcitizen ,
Use the GUI please to edit the rules. I know that manually editing is the list field is a pain, but it's what it is right now.
Hi, The problem in nixos in every app update you need to reassign new ones/delete the old ones, because the path for each app changes.
You might probably know, in nixos paths are like:
/nix/store/sb8rnpbvf4hp253vjzps5fgwqdly2bkg-vlc-3.0.18/bin/vlc
So we can programmatically write the path as a variable to rules, like: NixOS Options for OpenSnitch
I can easily define simple rules, but not easy for lists because the duplicate data field. Such as:
librewolf = {
name = "librewolf";
enabled = true;
action = "allow";
duration = "always";
operator = {
type = "simple";
sensitive = false;
operand = "process.path";
data = "${lib.getBin pkgs.librewolf}/lib/librewolf/librewolf";
};
};
Manually entering the fields for list option, needing an extra data field should not be necessary. As data and list are showing the same structure. (Using it in nixos, predetermined configuration file)
Summary: