2024-01-22 13:12:10 +00:00
|
|
|
{ config, lib, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.sane.programs.wireshark;
|
|
|
|
in
|
2023-05-10 04:52:12 +00:00
|
|
|
{
|
2024-01-22 13:12:10 +00:00
|
|
|
sane.programs.wireshark = {
|
2024-01-27 04:44:21 +00:00
|
|
|
sandbox.method = "landlock";
|
2024-01-29 12:07:04 +00:00
|
|
|
sandbox.wrapperType = "wrappedDerivation";
|
2024-02-14 01:49:49 +00:00
|
|
|
sandbox.whitelistWayland = true;
|
2024-02-08 21:51:32 +00:00
|
|
|
sandbox.net = "all";
|
2024-02-14 01:49:49 +00:00
|
|
|
sandbox.capabilities = [ "net_admin" "net_raw" ];
|
2024-01-27 04:44:21 +00:00
|
|
|
sandbox.extraPaths = [
|
2024-01-27 09:04:08 +00:00
|
|
|
"/proc/net" #< only needed if using landlock
|
2024-01-23 14:30:42 +00:00
|
|
|
];
|
2024-02-14 01:49:49 +00:00
|
|
|
|
2024-01-27 04:44:21 +00:00
|
|
|
fs.".config/wireshark".dir = {};
|
2024-01-22 13:12:10 +00:00
|
|
|
slowToBuild = true;
|
|
|
|
};
|
2023-05-10 04:52:12 +00:00
|
|
|
}
|