From dd0b5a7e08919a3976d0bdada4d856830f8cd2dc Mon Sep 17 00:00:00 2001 From: Charles Hall Date: Tue, 6 Jun 2023 08:10:27 -0700 Subject: [PATCH] nixos/lemmy: warn for option removed upstream Also hide it since it shouldn't be used. --- nixos/modules/services/web-apps/lemmy.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/lemmy.nix b/nixos/modules/services/web-apps/lemmy.nix index 97be4a96f219..383aa7f5aeb7 100644 --- a/nixos/modules/services/web-apps/lemmy.nix +++ b/nixos/modules/services/web-apps/lemmy.nix @@ -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";