Skip to content

Commit 87312ff

Browse files
committed
fix configFilesPath
1 parent ee0f957 commit 87312ff

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

modules/block-producer-node/default.nix

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ in
2828
};
2929

3030
configFilesPath = lib.mkOption {
31-
type = lib.types.path;
32-
description = "Path to the network configuration directory";
31+
type = lib.types.nullOr lib.types.path;
32+
default = null;
33+
description = "Path to the network configuration directory. Optional, will use cardano-node service configuration if set to null.";
3334
};
3435
};
3536
};
@@ -45,9 +46,11 @@ in
4546
services.cardano-node = mkMerge [
4647
{
4748
enable = true;
49+
}
50+
(mkIf (cfg.configFilesPath != null) {
4851
nodeConfigFile = "${cfg.configFilesPath}/configuration.yaml";
4952
topology = "${cfg.configFilesPath}/topology-spo-1.json";
50-
}
53+
})
5154
(mkIf (cfg.block-producer-key-path != null) {
5255
signingKey = "${cfg.block-producer-key-path}/byron-gen-command/delegate-keys.000.key";
5356
delegationCertificate = "${cfg.block-producer-key-path}/byron-gen-command/delegation-cert.000.json";

0 commit comments

Comments
 (0)