From 99392561a65b2570dc72f9150fbc590bd874f846 Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Tue, 16 Aug 2022 14:35:24 +1000 Subject: [PATCH] cardano-node: ensure service starts after nixops keys are loaded --- profiles/cardano-node.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/profiles/cardano-node.nix b/profiles/cardano-node.nix index ba29e74..3af4472 100644 --- a/profiles/cardano-node.nix +++ b/profiles/cardano-node.nix @@ -39,6 +39,24 @@ in { }; }; + systemd = { + services = { + cardano-node = { + # Ensure cardano-node starts after nixops keys are loaded + after = [ + "cardano-kes-key.service" + "cardano-opcert-key.service" + "cardano-vrf-key.service" + ]; + wants = [ + "cardano-kes-key.service" + "cardano-opcert-key.service" + "cardano-vrf-key.service" + ]; + }; + }; + }; + networking = { firewall = { allowedTCPPorts = [