Skip to content

Commit

Permalink
Merge #238: Deprecate lightning-charge and nanopos
Browse files Browse the repository at this point in the history
36c9c39 Deprecate lightning-charge and nanopos (Jonas Nick)

Pull request description:

ACKs for top commit:
  nixbitcoin:
    ACK 36c9c39

Tree-SHA512: 3d69b8eb56f7afabfe13942e717f74d5ead76b6f6b6788130d86e0e5409d2408a66ddccd7c5b28b058388c365f8f5c9055d0a8f2fe68704d01e6ccdafb791690
  • Loading branch information
jonasnick committed Sep 22, 2020
2 parents 6554e69 + 36c9c39 commit bde530c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/lightning-charge.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ in {
};

config = mkIf cfg.enable {
warnings = [''
The lightning-charge module is deprecated and will be removed soon.
''];
assertions = [
{ assertion = config.services.clightning.enable;
message = "lightning-charge requires clightning.";
Expand Down
4 changes: 4 additions & 0 deletions modules/nanopos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ in {
};

config = mkIf cfg.enable {
warnings = [''
The nanopos module is deprecated and will be removed soon. You can use the
btcpayserver module instead.
''];
assertions = [
{ assertion = config.services.lightning-charge.enable;
message = "nanopos requires lightning-charge.";
Expand Down

0 comments on commit bde530c

Please sign in to comment.