liquid: move rpcuser definition to module

This commit is contained in:
Erik Arvstedt 2021-01-14 13:24:30 +01:00
parent 0e00c39d47
commit 757a66b9bd
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 3 additions and 4 deletions

View File

@ -30,7 +30,7 @@ let
rpcbind=${cfg.rpc.address}
rpcconnect=${cfg.rpc.address}
${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}"}
mainchainrpchost=${config.services.bitcoind.rpc.address}
mainchainrpcport=${toString config.services.bitcoind.rpc.port}
@ -138,8 +138,8 @@ in {
'';
};
rpcuser = mkOption {
type = types.nullOr types.str;
default = null;
type = types.str;
default = "liquidrpc";
description = "Username for JSON-RPC connections";
};
rpcpassword = mkOption {

View File

@ -48,7 +48,6 @@ in {
};
services.liquidd = {
rpcuser = "liquidrpc";
prune = 1000;
validatepegin = true;
listen = true;