spark-wallet, lightning-charge: specify mainchain network in clightning data dir
This fixes warnings in each service.
This commit is contained in:
parent
eaaa6b8701
commit
6fe647ecc4
|
@ -31,7 +31,7 @@ in {
|
||||||
after = [ "clightning.service" ];
|
after = [ "clightning.service" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
EnvironmentFile = "${config.nix-bitcoin.secretsDir}/lightning-charge-env";
|
EnvironmentFile = "${config.nix-bitcoin.secretsDir}/lightning-charge-env";
|
||||||
ExecStart = "${pkgs.nix-bitcoin.lightning-charge}/bin/charged -l ${config.services.clightning.dataDir} -d ${config.services.clightning.dataDir}/lightning-charge.db";
|
ExecStart = "${pkgs.nix-bitcoin.lightning-charge}/bin/charged -l ${config.services.clightning.dataDir}/bitcoin -d ${config.services.clightning.dataDir}/lightning-charge.db";
|
||||||
# Unfortunately c-lightning doesn't allow setting the permissions of the rpc socket,
|
# Unfortunately c-lightning doesn't allow setting the permissions of the rpc socket,
|
||||||
# so this must run as the clightning user
|
# so this must run as the clightning user
|
||||||
# https://github.com/ElementsProject/lightning/issues/1366
|
# https://github.com/ElementsProject/lightning/issues/1366
|
||||||
|
|
|
@ -32,9 +32,9 @@ in {
|
||||||
};
|
};
|
||||||
ln-path = mkOption {
|
ln-path = mkOption {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
default = "/var/lib/clightning";
|
default = "${config.services.clightning.dataDir}/bitcoin";
|
||||||
description = ''
|
description = ''
|
||||||
"The path of the clightning data directory.";
|
"The path of the clightning network data directory.";
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
onion-service = mkOption {
|
onion-service = mkOption {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user