diff options
Diffstat (limited to 'modules/profiles')
-rw-r--r-- | modules/profiles/common/default.nix | 6 | ||||
-rw-r--r-- | modules/profiles/libvirtd/default.nix | 8 | ||||
-rw-r--r-- | modules/profiles/wireshark/default.nix | 8 |
3 files changed, 7 insertions, 15 deletions
diff --git a/modules/profiles/common/default.nix b/modules/profiles/common/default.nix index c25fece..67d228a 100644 --- a/modules/profiles/common/default.nix +++ b/modules/profiles/common/default.nix @@ -3,11 +3,7 @@ nix = { settings = { trusted-users = [ "@wheel" "root" ]; - experimental-features = lib.mkDefault [ - "nix-command" - "flakes" - "pipe-operators" - ]; + experimental-features = lib.mkDefault [ "nix-command" "flakes" ]; auto-optimise-store = true; }; gc = { diff --git a/modules/profiles/libvirtd/default.nix b/modules/profiles/libvirtd/default.nix index fa617d1..222fdab 100644 --- a/modules/profiles/libvirtd/default.nix +++ b/modules/profiles/libvirtd/default.nix @@ -13,9 +13,7 @@ programs.virt-manager.enable = true; # Add any users in the 'wheel' group to the 'libvirtd' group. - users.groups.libvirtd.members = let users = config.users.users; in - builtins.attrNames users - |> builtins.filter ( - x: builtins.elem "wheel" users.${x}.extraGroups - ); + users.groups.libvirtd.members = + with builtins; let users = config.users.users; in + filter (u: elem "wheel" users.${u}.extraGroups) (attrNames users); } 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); } |