diff options
Diffstat (limited to 'share/system/virt.nix')
| -rw-r--r-- | share/system/virt.nix | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/share/system/virt.nix b/share/system/virt.nix index 0207064..6f5a9fe 100644 --- a/share/system/virt.nix +++ b/share/system/virt.nix @@ -2,25 +2,18 @@ let # https://stackoverflow.com/questions/75855410/nix-map-list-of-keys-to-attribute-set-members attrSetRepeatValue = value: list: - let - acc = { }; # accumulator - in - builtins.foldl' (acc: key: acc // { "${key}" = value; }) acc list; -in -{ - users.users = attrSetRepeatValue - { extraGroups = [ "libvirtd" ]; } - virt-users; + let acc = { }; # accumulator + in builtins.foldl' (acc: key: acc // { "${key}" = value; }) acc list; +in { + users.users = attrSetRepeatValue { extraGroups = [ "libvirtd" ]; } virt-users; - home-manager.users = attrSetRepeatValue - { - home.packages = [ pkgs.quickemu ]; - dconf.settings."org/virt-manager/virt-manager/connections" = { - autoconnect = [ "qemu:///system" ]; - uris = [ "qemu:///system" ]; - }; - } - virt-users; + home-manager.users = attrSetRepeatValue { + home.packages = [ pkgs.quickemu ]; + dconf.settings."org/virt-manager/virt-manager/connections" = { + autoconnect = [ "qemu:///system" ]; + uris = [ "qemu:///system" ]; + }; + } virt-users; programs.virt-manager.enable = true; virtualisation.libvirtd = { |
