dotfiles/common/programs/wireshark.nix
2024-10-28 19:57:27 -04:00

29 lines
412 B
Nix

{ NAME }: { ... }: {
programs = {
wireshark = {
enable = true;
};
};
boot = {
kernelModules = [
"usbmon"
];
};
services = {
udev = {
extraRules = ''
SUBSYSTEM=="usbmon", GROUP="wireshark", MODE="640"
'';
};
};
users = {
users = {
"${NAME}" = {
extraGroups = [
"wireshark"
];
};
};
};
}