wireshark: fix security.wrappers when wireshark is disabled

This commit is contained in:
Colin 2024-01-22 23:58:04 +00:00
parent 5b220f3fec
commit c11f5a1401

View File

@ -20,5 +20,7 @@ in
package = cfg.package;
};
# the SUID wrapper can't also be a firejail (idk why? it might be that the binary's already *too* restricted).
security.wrappers.dumpcap.source = lib.mkIf cfg.enabled (lib.mkForce "${cfg.package}/bin/.dumpcap-firejailed");
security.wrappers = lib.mkIf cfg.enabled {
dumpcap.source = lib.mkForce "${cfg.package}/bin/.dumpcap-firejailed";
};
}