From 5f78eb0fd077926a2b7fd3ce21e501847ba79bfb Mon Sep 17 00:00:00 2001 From: Michael Fellinger Date: Fri, 13 Sep 2019 16:43:17 +0200 Subject: [PATCH] Add socketPath option for cardano service --- modules/cardano-service.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/cardano-service.nix b/modules/cardano-service.nix index 4bd5ae8a877..f5a2530ac1f 100644 --- a/modules/cardano-service.nix +++ b/modules/cardano-service.nix @@ -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 = { @@ -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"; + }; }; };