From edfb052c7e52cd08b4c6290fc5fb7a794c64e060 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 24 Oct 2025 14:53:59 +0200 Subject: [PATCH] plugins/alpha: remove old deprecation warning --- plugins/by-name/alpha/default.nix | 37 ------------------------------- 1 file changed, 37 deletions(-) diff --git a/plugins/by-name/alpha/default.nix b/plugins/by-name/alpha/default.nix index 94b4abe9..ccdf52da 100644 --- a/plugins/by-name/alpha/default.nix +++ b/plugins/by-name/alpha/default.nix @@ -1,7 +1,6 @@ { lib, config, - options, pkgs, ... }: @@ -62,13 +61,6 @@ in ]; }; - # TODO: deprecated 2024-08-29 remove after 24.11 - iconsEnabled = mkOption { - type = types.bool; - description = "Toggle icon support. Installs nvim-web-devicons."; - visible = false; - }; - theme = mkOption { type = with types; nullOr (maybeRaw str); apply = v: if lib.isString v then lib.nixvim.mkRaw "require'alpha.themes.${v}'.config" else v; @@ -147,37 +139,8 @@ in let layoutDefined = cfg.layout != [ ]; themeDefined = cfg.theme != null; - - opt = options.plugins.alpha; in lib.mkIf cfg.enable { - - # TODO: added 2024-09-20 remove after 24.11 - warnings = lib.nixvim.mkWarnings "plugins.alpha" { - when = opt.iconsEnabled.isDefined; - message = '' - The option definition `plugins.alpha.iconsEnabled' in ${lib.showFiles opt.iconsEnabled.files} has been deprecated; please remove it. - ''; - }; - - plugins.web-devicons = - lib.mkIf - ( - opt.iconsEnabled.isDefined - && cfg.iconsEnabled - && !( - ( - config.plugins.mini.enable - && config.plugins.mini.modules ? icons - && config.plugins.mini.mockDevIcons - ) - || (config.plugins.mini-icons.enable && config.plugins.mini-icons.mockDevIcons) - ) - ) - { - enable = lib.mkOverride 1490 true; - }; - extraPlugins = [ cfg.package ]; assertions = lib.nixvim.mkAssertions "plugins.alpha" [