aboutsummaryrefslogtreecommitdiff
path: root/modules/profiles/libvirtd
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profiles/libvirtd')
-rw-r--r--modules/profiles/libvirtd/default.nix8
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);
}