liquid: move rpcuser definition to module
This commit is contained in:
parent
0e00c39d47
commit
757a66b9bd
@ -30,7 +30,7 @@ let
|
|||||||
rpcbind=${cfg.rpc.address}
|
rpcbind=${cfg.rpc.address}
|
||||||
rpcconnect=${cfg.rpc.address}
|
rpcconnect=${cfg.rpc.address}
|
||||||
${lib.concatMapStrings (rpcallowip: "rpcallowip=${rpcallowip}\n") cfg.rpcallowip}
|
${lib.concatMapStrings (rpcallowip: "rpcallowip=${rpcallowip}\n") cfg.rpcallowip}
|
||||||
${optionalString (cfg.rpcuser != null) "rpcuser=${cfg.rpcuser}"}
|
rpcuser=${cfg.rpcuser}
|
||||||
${optionalString (cfg.rpcpassword != null) "rpcpassword=${cfg.rpcpassword}"}
|
${optionalString (cfg.rpcpassword != null) "rpcpassword=${cfg.rpcpassword}"}
|
||||||
mainchainrpchost=${config.services.bitcoind.rpc.address}
|
mainchainrpchost=${config.services.bitcoind.rpc.address}
|
||||||
mainchainrpcport=${toString config.services.bitcoind.rpc.port}
|
mainchainrpcport=${toString config.services.bitcoind.rpc.port}
|
||||||
@ -138,8 +138,8 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
rpcuser = mkOption {
|
rpcuser = mkOption {
|
||||||
type = types.nullOr types.str;
|
type = types.str;
|
||||||
default = null;
|
default = "liquidrpc";
|
||||||
description = "Username for JSON-RPC connections";
|
description = "Username for JSON-RPC connections";
|
||||||
};
|
};
|
||||||
rpcpassword = mkOption {
|
rpcpassword = mkOption {
|
||||||
|
@ -48,7 +48,6 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.liquidd = {
|
services.liquidd = {
|
||||||
rpcuser = "liquidrpc";
|
|
||||||
prune = 1000;
|
prune = 1000;
|
||||||
validatepegin = true;
|
validatepegin = true;
|
||||||
listen = true;
|
listen = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user