mirror of
https://github.com/sadan4/dotfiles.git
synced 2024-11-16 23:04:39 -05:00
29 lines
412 B
Nix
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"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|