summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/solr.nix
blob: 6fc02df1f58939d320bca460c4f8233f2077f5c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ config, lib, pkgs, ... }:

# graphite-web on port 8080
# carbon cache on port 2003 (tcp/udp)
with import <stockholm/lib>;
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";
  };
}