323
323
ipv6HostAddr = mkOption {
324
324
type = funcToOr nullOrStr ;
325
325
default = _ : null ;
326
- apply = ip : if ( builtins . isFunction ip ) then ip else _ : ip ;
326
+ apply = ip : if ( lib . isFunction ip ) then ip else _ : ip ;
327
327
description = ''
328
328
The ipv6 host address to bind to. Set to null to disable.
329
329
'' ;
348
348
stateDir = mkOption {
349
349
type = funcToOr types . str ;
350
350
default = "${ cfg . stateDirBase } cardano-node" ;
351
- apply = x : if ( builtins . isFunction x ) then x else i : x ;
351
+ apply = x : if ( lib . isFunction x ) then x else i : x ;
352
352
description = ''
353
353
Directory to store blockchain data, for each instance.
354
354
'' ;
365
365
runtimeDir = mkOption {
366
366
type = funcToOr nullOrStr ;
367
367
default = i : ''${ cfg . runDirBase } ${ suffixDir "cardano-node" i } '' ;
368
- apply = x : if builtins . isFunction x then x else if x == null then _ : null else "${ cfg . runDirBase } ${ suffixDir "cardano-node" x } " ;
368
+ apply = x : if lib . isFunction x then x else if x == null then _ : null else "${ cfg . runDirBase } ${ suffixDir "cardano-node" x } " ;
369
369
description = ''
370
370
Runtime directory relative to ${ cfg . runDirBase } , for each instance
371
371
'' ;
@@ -374,14 +374,14 @@ in {
374
374
databasePath = mkOption {
375
375
type = funcToOr types . str ;
376
376
default = i : "${ cfg . stateDir i } /${ cfg . dbPrefix i } " ;
377
- apply = x : if builtins . isFunction x then x else _ : x ;
377
+ apply = x : if lib . isFunction x then x else _ : x ;
378
378
description = ''Node database path, for each instance.'' ;
379
379
} ;
380
380
381
381
lmdbDatabasePath = mkOption {
382
382
type = funcToOr nullOrStr ;
383
383
default = null ;
384
- apply = x : if builtins . isFunction x then x else if x == null then _ : null else _ : x ;
384
+ apply = x : if lib . isFunction x then x else if x == null then _ : null else _ : x ;
385
385
description = ''
386
386
Node UTxO-HD LMDB path for performant disk I/O, for each instance.
387
387
This could point to a direct-access SSD, with a specifically created journal-less file system and optimized mount options.
@@ -391,14 +391,14 @@ in {
391
391
socketPath = mkOption {
392
392
type = funcToOr types . str ;
393
393
default = i : "${ runtimeDir i } /node.socket" ;
394
- apply = x : if builtins . isFunction x then x else _ : x ;
394
+ apply = x : if lib . isFunction x then x else _ : x ;
395
395
description = ''Local communication socket path, for each instance.'' ;
396
396
} ;
397
397
398
398
tracerSocketPathAccept = mkOption {
399
399
type = funcToOr nullOrStr ;
400
400
default = null ;
401
- apply = x : if builtins . isFunction x then x else _ : x ;
401
+ apply = x : if lib . isFunction x then x else _ : x ;
402
402
description = ''
403
403
Listen for incoming cardano-tracer connection on a local socket,
404
404
for each instance.
408
408
tracerSocketPathConnect = mkOption {
409
409
type = funcToOr nullOrStr ;
410
410
default = null ;
411
- apply = x : if builtins . isFunction x then x else _ : x ;
411
+ apply = x : if lib . isFunction x then x else _ : x ;
412
412
description = ''
413
413
Connect to cardano-tracer listening on a local socket,
414
414
for each instance.
456
456
dbPrefix = mkOption {
457
457
type = types . either types . str ( types . functionTo types . str ) ;
458
458
default = suffixDir "db-${ cfg . environment } " ;
459
- apply = x : if builtins . isFunction x then x else suffixDir x ;
459
+ apply = x : if lib . isFunction x then x else suffixDir x ;
460
460
description = ''
461
461
Prefix of database directories inside `stateDir`.
462
462
(eg. for "db", there will be db-0, etc.).
679
679
withUtxoHdLmdb = mkOption {
680
680
type = funcToOr types . bool ;
681
681
default = false ;
682
- apply = x : if builtins . isFunction x then x else _ : x ;
682
+ apply = x : if lib . isFunction x then x else _ : x ;
683
683
description = ''On an UTxO-HD enabled node, the in-memory backend is the default. This activates the on-disk backend (LMDB) instead.'' ;
684
684
} ;
685
685
726
726
type = funcToOr nullOrStr ;
727
727
default = null ;
728
728
example = i : "/etc/cardano-node/peer-snapshot-${ toString i } .json" ;
729
- apply = x : if builtins . isFunction x then x else _ : x ;
729
+ apply = x : if lib . isFunction x then x else _ : x ;
730
730
description = ''
731
731
If set, cardano-node will load a peer snapshot file from the declared absolute path.
732
732
0 commit comments