diff options
Diffstat (limited to 'modules/profiles/wireshark/default.nix')
-rw-r--r-- | modules/profiles/wireshark/default.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/profiles/wireshark/default.nix b/modules/profiles/wireshark/default.nix index d4d0627..ab741ff 100644 --- a/modules/profiles/wireshark/default.nix +++ b/modules/profiles/wireshark/default.nix @@ -6,9 +6,7 @@ }; # 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 - ); + users.groups.wireshark.members = + with builtins; let users = config.users.users; in + filter (u: elem "wheel" users.${u}.extraGroups) (attrNames users); } |