diff options
author | Jaka Hudoklin <jakahudoklin@gmail.com> | 2014-10-18 13:18:37 +0200 |
---|---|---|
committer | Jaka Hudoklin <jakahudoklin@gmail.com> | 2014-10-18 13:18:37 +0200 |
commit | 988ed87e70e88b6d79d05153e8b7c6e4c708d795 (patch) | |
tree | 51104402e5e73900b65c857507775f531cbfd508 /nixos | |
parent | 0252576737dec72c62aa31779ebfda036025f0f7 (diff) |
nixos/neo4j: add package option
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/databases/neo4j.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/nixos/modules/services/databases/neo4j.nix b/nixos/modules/services/databases/neo4j.nix index 2ef49a95166e..575034c93ab2 100644 --- a/nixos/modules/services/databases/neo4j.nix +++ b/nixos/modules/services/databases/neo4j.nix @@ -19,7 +19,7 @@ let org.neo4j.server.webadmin.rrdb.location=${cfg.dataDir}/data/rrd org.neo4j.server.webadmin.data.uri=/db/data/ org.neo4j.server.webadmin.management.uri=/db/manage/ - org.neo4j.server.db.tuning.properties=${pkgs.neo4j}/share/neo4j/conf/neo4j.properties + org.neo4j.server.db.tuning.properties=${cfg.package}/share/neo4j/conf/neo4j.properties org.neo4j.server.manage.console_engines=shell ${cfg.extraServerConfig} ''; @@ -46,6 +46,12 @@ in { type = types.uniq types.bool; }; + package = mkOption { + description = "Neo4j package to use."; + default = pkgs.neo4j; + type = types.package; + }; + host = mkOption { description = "Neo4j listen address."; default = "127.0.0.1"; @@ -119,7 +125,7 @@ in { after = [ "network-interfaces.target" ]; environment = { NEO4J_INSTANCE = cfg.dataDir; }; serviceConfig = { - ExecStart = "${pkgs.neo4j}/bin/neo4j console"; + ExecStart = "${cfg.package}/bin/neo4j console"; User = "neo4j"; PermissionsStartOnly = true; }; |