{ config, lib, ... }: with lib; mkIf (elem "virt-manager" config.machine.services) { virtualisation.libvirtd.enable = true; programs.virt-manager.enable = true; dconf.settings = { "org/virt-manager/virt-manager/connections" = { autoconnect = [ "qemu:///system" ]; uris = [ "qemu:///system" ]; }; }; }