2016-10-19 12:31:13 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
# graphite-web on port 8080
|
|
|
|
# carbon cache on port 2003 (tcp/udp)
|
2016-10-20 20:54:38 +02:00
|
|
|
with import <stockholm/lib>;
|
2016-10-19 12:31:13 +02:00
|
|
|
let
|
|
|
|
solrHome = "/var/db/solr";
|
|
|
|
in {
|
|
|
|
imports = [ ];
|
|
|
|
users.users.solr = {
|
|
|
|
home = solrHome;
|
|
|
|
uid = genid "solr";
|
|
|
|
createHome = true;
|
|
|
|
group = "solr";
|
|
|
|
};
|
|
|
|
users.groups.solr.gid = genid "solr";
|
|
|
|
|
|
|
|
services.solr = {
|
|
|
|
enable = true;
|
|
|
|
inherit solrHome;
|
|
|
|
user = "solr";
|
|
|
|
group = "solr";
|
|
|
|
};
|
|
|
|
}
|