treewide: fix formatting
This commit is contained in:
parent
0b5b29a2a3
commit
e774c045de
@ -326,10 +326,10 @@ in {
|
|||||||
in ''
|
in ''
|
||||||
${optionalString cfg.dataDirReadableByGroup "chmod -R g+rX '${cfg.dataDir}/blocks'"}
|
${optionalString cfg.dataDirReadableByGroup "chmod -R g+rX '${cfg.dataDir}/blocks'"}
|
||||||
cfg=$(
|
cfg=$(
|
||||||
cat ${configFile};
|
cat ${configFile}
|
||||||
${extraRpcauth}
|
${extraRpcauth}
|
||||||
${/* Enable bitcoin-cli for group 'bitcoin' */ ""}
|
${/* Enable bitcoin-cli for group 'bitcoin' */ ""}
|
||||||
printf "rpcuser=${cfg.rpc.users.privileged.name}\nrpcpassword="; cat "${secretsDir}/bitcoin-rpcpassword-privileged";
|
printf "rpcuser=${cfg.rpc.users.privileged.name}\nrpcpassword="; cat "${secretsDir}/bitcoin-rpcpassword-privileged"
|
||||||
echo
|
echo
|
||||||
${optionalString (cfg.getPublicAddressCmd != "") ''
|
${optionalString (cfg.getPublicAddressCmd != "") ''
|
||||||
echo "externalip=$(${cfg.getPublicAddressCmd})"
|
echo "externalip=$(${cfg.getPublicAddressCmd})"
|
||||||
|
@ -81,8 +81,7 @@ in {
|
|||||||
};
|
};
|
||||||
cli = mkOption {
|
cli = mkOption {
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
default = pkgs.writeScriptBin "lightning-cli"
|
default = pkgs.writeScriptBin "lightning-cli" ''
|
||||||
''
|
|
||||||
${nbPkgs.clightning}/bin/lightning-cli --lightning-dir='${cfg.dataDir}' "$@"
|
${nbPkgs.clightning}/bin/lightning-cli --lightning-dir='${cfg.dataDir}' "$@"
|
||||||
'';
|
'';
|
||||||
description = "Binary to connect with the clightning instance.";
|
description = "Binary to connect with the clightning instance.";
|
||||||
|
@ -51,7 +51,6 @@ in {
|
|||||||
nix-bitcoin.operator.groups = [ cfg.group ];
|
nix-bitcoin.operator.groups = [ cfg.group ];
|
||||||
})
|
})
|
||||||
(mkIf cfg.ledger {
|
(mkIf cfg.ledger {
|
||||||
|
|
||||||
# Ledger Nano S according to https://github.com/LedgerHQ/udev-rules/blob/master/add_udev_rules.sh
|
# Ledger Nano S according to https://github.com/LedgerHQ/udev-rules/blob/master/add_udev_rules.sh
|
||||||
# Don't use rules from nixpkgs because we want to use our own group.
|
# Don't use rules from nixpkgs because we want to use our own group.
|
||||||
services.udev.packages = lib.singleton (pkgs.writeTextFile {
|
services.udev.packages = lib.singleton (pkgs.writeTextFile {
|
||||||
|
Loading…
Reference in New Issue
Block a user