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