anchor.diff:        };
   
         nixos.modules = singleton {
  -        services.nscd.enable = cfg.backend != "lxc";
  +        services.nscd.enable = backend != "lxc";
           users.extraUsers.root.password = "root";
           services.journald.extraConfig = ''
             Storage=volatile
  
positive.code:       _module.args = { inherit pkgs; };
  
        libvirt.domain = {
          backend = cfg.backend;
          lxc = mkIf (cfg.backend == "lxc") {
            mappedUid = "@uid@";
            mappedGid = "@gid@";
            rootPath = "/@mnt@/root-${name}";
  
negative.code: 
  with lib;
  with pkgs;
  with builtins;
  
  let
  
    cfg = config.libvirt.test;
  
    backend =
      if match "^lxc\+?[^:]+://.*$" cfg.connectionURI != null then "lxc"
      else if match "^qemu\+?[^:]+://.*$" cfg.connectionURI != null then "qemu"
      else throw "Cannot derive libvirt backend type from URI ${cfg.connectionURI}";
  
    inherit (import ../../lib.nix) hexByteToInt mkMAC;
  
  