From 36c9c39d80669121619221bcf564124173234ae7 Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Tue, 22 Sep 2020 14:05:51 +0000 Subject: [PATCH] Deprecate lightning-charge and nanopos Because we have btcpayserver now, nanopos is not really needed any more. Nanopos was meant to be just a PoC. Lightning charge can be removed because nanopos is the only module that depends on it. --- modules/lightning-charge.nix | 3 +++ modules/nanopos.nix | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/modules/lightning-charge.nix b/modules/lightning-charge.nix index 18e27ba..8ec9521 100644 --- a/modules/lightning-charge.nix +++ b/modules/lightning-charge.nix @@ -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."; diff --git a/modules/nanopos.nix b/modules/nanopos.nix index eb410d0..2d6aa47 100644 --- a/modules/nanopos.nix +++ b/modules/nanopos.nix @@ -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.";