File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
modules/block-producer-node Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 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 } ;
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" ;
You can’t perform that action at this time.
0 commit comments