19 lines
400 B
Nix
19 lines
400 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.sane.programs.wireshark;
|
|
in
|
|
{
|
|
sane.programs.wireshark = {
|
|
sandbox.method = "landlock";
|
|
sandbox.whitelistWayland = true;
|
|
sandbox.net = "all";
|
|
sandbox.capabilities = [ "net_admin" "net_raw" ];
|
|
sandbox.extraPaths = [
|
|
"/proc/net" #< only needed if using landlock
|
|
];
|
|
|
|
fs.".config/wireshark".dir = {};
|
|
buildCost = 2;
|
|
};
|
|
}
|