{dysnomia, disnix}:
{config, pkgs, ...}:

{
  imports = [ ../disnix-module.nix ];
  
  virtualisation.writableStore = true;
  virtualisation.pathsInNixDB = [ pkgs.stdenv ];
  
  services.disnixTest.enable = true;
  services.disnixTest.package = disnix;
  services.disnixTest.dysnomia = dysnomia;
  
  users.extraUsers = [
    { uid = 1000;
      name = "unprivileged";
      group = "users";
      shell = "/bin/sh";
      description = "Unprivileged user for the disnix-service";
    }
    
    { uid = 1001;
      name = "privileged";
      group = "users";
      shell = "/bin/sh";
      extraGroups = [ "disnix" ];
      description = "Privileged user for the disnix-service";
    }
  ];
  
  environment.systemPackages = [ dysnomia ];

  environment.etc."dysnomia/properties" = {
    source = pkgs.writeTextFile {
      name = "dysnomia-properties";
      text = ''
        foo=bar
        supportedTypes=("process" "wrapper")
      '';
    };
  };
}

{dysnomia, disnix}:
{config, pkgs, ...}:

{
  imports = [ ../disnix-module.nix ];
  
  virtualisation.writableStore = true;
  virtualisation.pathsInNixDB = [ pkgs.stdenv ] ++ pkgs.libxml2.all ++ pkgs.libxslt.all;
  
  services.disnixTest.enable = true;
  services.disnixTest.package = disnix;
  services.disnixTest.dysnomia = dysnomia;
  
  users.extraUsers = [
    { uid = 1000;
      name = "unprivileged";
      group = "users";
      shell = "/bin/sh";
      description = "Unprivileged user for the disnix-service";
    }
    
    { uid = 1001;
      name = "privileged";
      group = "users";
      shell = "/bin/sh";
      extraGroups = [ "disnix" ];
      description = "Privileged user for the disnix-service";
    }
  ];
  
  environment.systemPackages = [ dysnomia ];

  environment.etc."dysnomia/properties" = {
    source = pkgs.writeTextFile {
      name = "dysnomia-properties";
      text = ''
        foo=bar
        supportedTypes=("process" "wrapper")
      '';
    };
  };
}

Fix build problem in testcases with Nixpkgs 16.09
Fix build problem in testcases with Nixpkgs 16.09
