anchor.diff:          description =
             ''
               This option enables support for QEMU/KVM in libvirtd.
  +          '';
  +      };
  +
  +    virtualisation.libvirtd.extraConfig =
  +      mkOption {
  +        default = "";
  +        description =
  +          ''
  +            Extra contents appended to the libvirtd configuration file,
  +            libvirtd.conf.
             '';
         };
   
  
positive.code:             done
            ''; # */
  
          serviceConfig.ExecStart = "@${pkgs.libvirt}/sbin/libvirtd libvirtd --daemon --verbose";
          serviceConfig.Type = "forking";
          serviceConfig.KillMode = "process"; # when stopping, leave the VMs alone
  
  
negative.code: let
  
    cfg = config.virtualisation.libvirtd;
    configFile = pkgs.writeText "libvirtd.conf" ''
      unix_sock_group = "libvirtd"
      unix_sock_rw_perms = "0770"
      auth_unix_ro = "none"
      auth_unix_rw = "none"
      ${cfg.extraConfig}
    '';
  
  in
  
  