diff options
author | tdback <tyler@tdback.net> | 2024-12-27 19:09:34 -0500 |
---|---|---|
committer | tdback <tyler@tdback.net> | 2024-12-27 19:09:34 -0500 |
commit | 836ec67a008ce16c57ea5071ef901154f7e93ea9 (patch) | |
tree | bdd6cef8b412bc2f34da476753898ec319a8f507 /modules/profiles/libvirtd/default.nix | |
parent | c3f79aa804421d71f9a48296b3dea0cea2af0368 (diff) |
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!
Diffstat (limited to 'modules/profiles/libvirtd/default.nix')
-rw-r--r-- | modules/profiles/libvirtd/default.nix | 8 |
1 files changed, 3 insertions, 5 deletions
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); } |