obsolete-options: add removed clightning plugins

This commit is contained in:
Erik Arvstedt 2024-04-08 15:54:24 +02:00 committed by Jonas Nick
parent aec25c7d04
commit 5730afe48e
No known key found for this signature in database
GPG Key ID: 4861DBF262123605
2 changed files with 12 additions and 1 deletions

View File

@ -107,7 +107,15 @@ in {
(mkRemovedOptionModule [ "services" "clightning" "plugins" "clboss" "acknowledgeDeprecation" ] ''
`clboss` is maintained again and has been un-deprecated.
'')
];
]
++
# 0.0.106
(map (plugin:
mkRemovedOptionModule [ "services" "clightning" "plugins" plugin ] ''
This plugin is no longer maintained.
'')
[ "summary" "helpme" "prometheus" ]
);
config = {
# Migrate old clightning-rest datadir from nix-bitcoin versions < 0.0.70
systemd.services.clightning-rest-migrate-datadir = let

View File

@ -49,6 +49,9 @@ let
removed = [
# Only defined via `obsolete-options.nix`
"commando"
"helpme"
"prometheus"
"summary"
];
available = subtractLists removed (builtins.attrNames plugins);
enabled = builtins.filter (plugin: plugins.${plugin}.enable) available;