nixos/lemmy: warn for option removed upstream
Also hide it since it shouldn't be used.
This commit is contained in:
parent
686111b8a6
commit
dd0b5a7e08
1 changed files with 5 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue