nixos/lemmy: warn for option removed upstream

Also hide it since it shouldn't be used.
This commit is contained in:
Charles Hall 2023-06-06 08:10:27 -07:00 committed by Yt
parent 686111b8a6
commit dd0b5a7e08

View file

@ -49,7 +49,7 @@ in
};
options.federation = {
enabled = mkEnableOption (lib.mdDoc "activitypub federation");
enabled = (mkEnableOption (lib.mdDoc "activitypub federation")) // { visible = false; };
};
options.captcha = {
@ -71,6 +71,10 @@ in
config =
lib.mkIf cfg.enable {
warnings = lib.optional (cfg.settings.federation.enabled) ''
This option was removed in 0.17.0 and no longer has any effect.
'';
services.lemmy.settings = (mapAttrs (name: mkDefault)
{
bind = "127.0.0.1";