From 836ec67a008ce16c57ea5071ef901154f7e93ea9 Mon Sep 17 00:00:00 2001 From: tdback Date: Fri, 27 Dec 2024 19:09:34 -0500 Subject: fix: remove pipe-operators experimental feature im going to hold off on using the pipe-operators until they are an official part of the nix language. in its current state portability gets hurt for any modules using the feature, since one has to manually opt-in. in the end, it's just a syntax change! --- modules/profiles/wireshark/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'modules/profiles/wireshark/default.nix') 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); } -- cgit v1.2.3