netns: use map instead of concatMap
This commit is contained in:
parent
b7fc819be5
commit
a3ae8668e6
@ -210,9 +210,7 @@ in {
|
|||||||
];
|
];
|
||||||
rpcallowip = [
|
rpcallowip = [
|
||||||
"127.0.0.1"
|
"127.0.0.1"
|
||||||
] ++ lib.lists.concatMap (n: [
|
] ++ map (n: "${netns.${n}.address}") netns.bitcoind.availableNetns;
|
||||||
"${netns.${n}.address}"
|
|
||||||
]) netns.bitcoind.availableNetns;
|
|
||||||
cli = pkgs.writeScriptBin "bitcoin-cli" ''
|
cli = pkgs.writeScriptBin "bitcoin-cli" ''
|
||||||
netns-exec nb-bitcoind ${config.services.bitcoind.package}/bin/bitcoin-cli -datadir='${config.services.bitcoind.dataDir}' "$@"
|
netns-exec nb-bitcoind ${config.services.bitcoind.package}/bin/bitcoin-cli -datadir='${config.services.bitcoind.dataDir}' "$@"
|
||||||
'';
|
'';
|
||||||
@ -253,9 +251,7 @@ in {
|
|||||||
];
|
];
|
||||||
rpcallowip = [
|
rpcallowip = [
|
||||||
"127.0.0.1"
|
"127.0.0.1"
|
||||||
] ++ lib.lists.concatMap (n: [
|
] ++ map (n: "${netns.${n}.address}") netns.liquidd.availableNetns;
|
||||||
"${netns.${n}.address}"
|
|
||||||
]) netns.liquidd.availableNetns;
|
|
||||||
mainchainrpchost = netns.bitcoind.address;
|
mainchainrpchost = netns.bitcoind.address;
|
||||||
cli = pkgs.writeScriptBin "elements-cli" ''
|
cli = pkgs.writeScriptBin "elements-cli" ''
|
||||||
netns-exec nb-liquidd ${pkgs.nix-bitcoin.elementsd}/bin/elements-cli -datadir='${config.services.liquidd.dataDir}' "$@"
|
netns-exec nb-liquidd ${pkgs.nix-bitcoin.elementsd}/bin/elements-cli -datadir='${config.services.liquidd.dataDir}' "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user