blob: d4d06271d8021623a4037d0c2fff5df822bc669f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{ config, pkgs, ... }:
{
programs.wireshark = {
enable = true;
package = pkgs.wireshark;
};
# Add any users in the 'wheel' group to the 'wireshark' group.
users.groups.wireshark.members = let users = config.users.users; in
builtins.attrNames users
|> builtins.filter (
x: builtins.elem "wheel" users.${x}.extraGroups
);
}
|