Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Commit

Permalink
Add socketPath option for cardano service
Browse files Browse the repository at this point in the history
  • Loading branch information
manveru committed Sep 13, 2019
1 parent be7a0f7 commit 5f78eb0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/cardano-service.nix
Expand Up @@ -52,6 +52,7 @@ let
"--node-id ${config.params.name}"
(optionalString cfg.enablePolicies ("--policies " + (if (config.params.typeIsCore) then "${../benchmarks/policy_core.yaml}" else "${../benchmarks/policy_relay.yaml}")))
(optionalString cfg.enableProfiling "+RTS -p -RTS")
(optionalString (cfg.socketPath != null) "--socket-path ${cfg.socketPath}")
];
in {
options = {
Expand Down Expand Up @@ -141,6 +142,12 @@ in {
description = "Serve EKG web UI on port 8080";
default = false;
};

socketPath = mkOption {
type = types.nullOr types.path;
description = "The local socket filepath.";
default = "${stateDir}/node-core-${toString cfg.nodeIndex}.socket";
};
};
};

Expand Down

0 comments on commit 5f78eb0

Please sign in to comment.