Compare commits
2 commits
638969c608
...
ca19127584
| Author | SHA1 | Date | |
|---|---|---|---|
| ca19127584 | |||
| a1e2778f8c |
2 changed files with 40 additions and 0 deletions
27
flake.lock
generated
Normal file
27
flake.lock
generated
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1776877367,
|
||||||
|
"narHash": "sha256-EHq1/OX139R1RvBzOJ0aMRT3xnWyqtHBRUBuO1gFzjI=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "0726a0ecb6d4e08f6adced58726b95db924cef57",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
13
webapp.nix
13
webapp.nix
|
|
@ -41,6 +41,7 @@ let
|
||||||
VITE_LNBITS_BASE_URL = cfg.lnbitsBaseUrl;
|
VITE_LNBITS_BASE_URL = cfg.lnbitsBaseUrl;
|
||||||
VITE_LNBITS_DEBUG = if cfg.lnbitsDebug then "true" else "false";
|
VITE_LNBITS_DEBUG = if cfg.lnbitsDebug then "true" else "false";
|
||||||
VITE_WEBSOCKET_ENABLED = if cfg.websocketEnabled then "true" else "false";
|
VITE_WEBSOCKET_ENABLED = if cfg.websocketEnabled then "true" else "false";
|
||||||
|
VITE_LNBITS_NOSTR_TRANSPORT_PUBKEY = cfg.lnbitsNostrTransportPubkey;
|
||||||
|
|
||||||
# Lightning Address Domain
|
# Lightning Address Domain
|
||||||
VITE_LIGHTNING_DOMAIN = cfg.lightningDomain;
|
VITE_LIGHTNING_DOMAIN = cfg.lightningDomain;
|
||||||
|
|
@ -179,6 +180,18 @@ in {
|
||||||
description = "Enable LNBits debug mode";
|
description = "Enable LNBits debug mode";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
lnbitsNostrTransportPubkey = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "";
|
||||||
|
example = "ac766168d4f3232772b16002a059cdf2ffed7293a25da620a2ddbdab7691c07f";
|
||||||
|
description = ''
|
||||||
|
Hex-encoded Nostr public key identifying the LNbits instance on
|
||||||
|
the relay network. The webapp uses this to address NIP-44 v2
|
||||||
|
encrypted kind-21000 RPC requests at the lnbits backend over
|
||||||
|
Nostr instead of HTTP. Empty string = nostr transport disabled.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
websocketEnabled = lib.mkOption {
|
websocketEnabled = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue