Skip to content

Commit

Permalink
nixos/neo4j: add package option
Browse files Browse the repository at this point in the history
  • Loading branch information
offlinehacker committed Oct 18, 2014
1 parent 0252576 commit 988ed87
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions nixos/modules/services/databases/neo4j.nix
Expand Up @@ -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}
'';
Expand All @@ -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";
Expand Down Expand Up @@ -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;
};
Expand Down

0 comments on commit 988ed87

Please sign in to comment.