Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d59a995e8 | ||
|
|
f1f0bf0d11 |
No files matched your search
Generated
+3
-3
@@ -152,11 +152,11 @@
|
|||||||
"nixpkgs": "nixpkgs_4"
|
"nixpkgs": "nixpkgs_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792360027,
|
"lastModified": 1792361662,
|
||||||
"narHash": "sha256-xswy8KO60LRwFFWuqnkGTzuQid7rCqZLS6GioTgoL6s=",
|
"narHash": "sha256-EySy/HbufH9trjH0kEuZ2nVVk0+Sn5FoxJI7YtHrspo=",
|
||||||
"owner": "naturallaw777",
|
"owner": "naturallaw777",
|
||||||
"repo": "Sovran_Bitcoin",
|
"repo": "Sovran_Bitcoin",
|
||||||
"rev": "2616745e5bc69d1f67c18627e7d2e038fb8edcb7",
|
"rev": "5c13bf5e01beccc4a225a36cde833f00b2595718",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -55,13 +55,34 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# ── 2. Second_Drive data paths (OS-specific) ──────────────────
|
# ── 2. Second_Drive data paths (OS-specific) ──────────────────
|
||||||
services.bitcoind = lib.mkIf cfg.services.bitcoin {
|
services.bitcoind = lib.mkIf cfg.services.bitcoin ({
|
||||||
dataDir = "/run/media/Second_Drive/BTCEcoandBackup/Bitcoin_Node";
|
dataDir = "/run/media/Second_Drive/BTCEcoandBackup/Bitcoin_Node";
|
||||||
# The OS always enables the bitcoind wallet — the Hub and BTCPay need it.
|
# The OS always enables the bitcoind wallet — the Hub and BTCPay need it.
|
||||||
disablewallet = lib.mkForce false;
|
disablewallet = lib.mkForce false;
|
||||||
# electrs 0.12.0 (bindex) requires bitcoind's REST interface (rest=1).
|
# electrs 0.12.0 (bindex) requires bitcoind's REST interface (rest=1).
|
||||||
extraConfig = lib.optionalString (!(options.services.bitcoind ? rest)) "rest=1";
|
extraConfig = lib.optionalString (!(options.services.bitcoind ? rest)) "rest=1";
|
||||||
};
|
} // lib.optionalAttrs cfg.web.btcpayserver {
|
||||||
|
rpc.users.btcpayserver.rpcwhitelist = lib.mkForce (lib.unique (config.services.bitcoind.rpc.users.public.rpcwhitelist ++ [
|
||||||
|
"setban"
|
||||||
|
"generatetoaddress"
|
||||||
|
"getrpcinfo"
|
||||||
|
"gettransaction"
|
||||||
|
"getwalletinfo"
|
||||||
|
"getnewaddress"
|
||||||
|
"listunspent"
|
||||||
|
"listtransactions"
|
||||||
|
"listreceivedbyaddress"
|
||||||
|
"importmulti"
|
||||||
|
"importdescriptors"
|
||||||
|
"importaddress"
|
||||||
|
"importprivkey"
|
||||||
|
"importpubkey"
|
||||||
|
"rescanblockchain"
|
||||||
|
"createwallet"
|
||||||
|
"loadwallet"
|
||||||
|
"signrawtransactionwithwallet"
|
||||||
|
]));
|
||||||
|
});
|
||||||
|
|
||||||
services.electrs = lib.mkIf cfg.services.bitcoin {
|
services.electrs = lib.mkIf cfg.services.bitcoin {
|
||||||
dataDir = "/run/media/Second_Drive/BTCEcoandBackup/Electrs_Data";
|
dataDir = "/run/media/Second_Drive/BTCEcoandBackup/Electrs_Data";
|
||||||
|
|||||||
Reference in new issue
Block a user