diff --git a/modules/lightning-charge.nix b/modules/lightning-charge.nix index 5f43ed0..0d0061a 100644 --- a/modules/lightning-charge.nix +++ b/modules/lightning-charge.nix @@ -31,7 +31,7 @@ in { after = [ "clightning.service" ]; serviceConfig = { 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, # so this must run as the clightning user # https://github.com/ElementsProject/lightning/issues/1366 diff --git a/modules/spark-wallet.nix b/modules/spark-wallet.nix index bef8d45..c1565ea 100644 --- a/modules/spark-wallet.nix +++ b/modules/spark-wallet.nix @@ -32,9 +32,9 @@ in { }; ln-path = mkOption { type = types.path; - default = "/var/lib/clightning"; + default = "${config.services.clightning.dataDir}/bitcoin"; description = '' - "The path of the clightning data directory."; + "The path of the clightning network data directory."; ''; }; onion-service = mkOption {