3
0
Fork 0
forked from mirrors/nixpkgs

Updated Disnix service definition to support new development version and mongo databases

This commit is contained in:
Sander van der Burg 2013-11-07 10:54:53 +01:00
parent 775b1bd4df
commit d31b328d0a

View file

@ -15,6 +15,7 @@ let
enablePostgreSQLDatabase = config.services.postgresql.enable; enablePostgreSQLDatabase = config.services.postgresql.enable;
enableSubversionRepository = config.services.svnserve.enable; enableSubversionRepository = config.services.svnserve.enable;
enableTomcatWebApplication = config.services.tomcat.enable; enableTomcatWebApplication = config.services.tomcat.enable;
enableMongoDatabase = config.services.mongodb.enable;
}); });
in in
@ -125,17 +126,18 @@ in
++ optional config.services.httpd.enable "httpd.service" ++ optional config.services.httpd.enable "httpd.service"
++ optional config.services.mysql.enable "mysql.service" ++ optional config.services.mysql.enable "mysql.service"
++ optional config.services.tomcat.enable "tomcat.service" ++ optional config.services.tomcat.enable "tomcat.service"
++ optional config.services.svnserve.enable "svnserve.service"; ++ optional config.services.svnserve.enable "svnserve.service"
++ optional config.services.mongodb.enable "mongodb.service";
restartIfChanged = false; restartIfChanged = false;
path = [ pkgs.nix pkgs.disnix ]; path = [ pkgs.nix pkgs.disnix pkgs.dysnomia ];
script = environment = {
'' HOME = "/root";
export HOME=/root };
disnix-service --dysnomia-modules-dir=${dysnomia}/libexec/dysnomia
''; exec = "disnix-service";
}; };
} // optionalAttrs cfg.publishAvahi { } // optionalAttrs cfg.publishAvahi {
disnixAvahi = disnixAvahi =