diff --git a/modules/services/mako.nix b/modules/services/mako.nix index 38f03101..2436a636 100644 --- a/modules/services/mako.nix +++ b/modules/services/mako.nix @@ -131,6 +131,7 @@ in ''; }; criteria = mkOption { + visible = false; type = iniType; default = { }; example = { @@ -147,8 +148,21 @@ in }; }; description = '' - Criterias for mako's config. All the details can be found in the + Criteria for mako's config. All the details can be found in the CRITERIA section in the official documentation. + + *Deprecated*: Use `settings` with nested attributes instead. For example: + ```nix + settings = { + # Global settings + anchor = "top-right"; + + # Criteria sections + "actionable=true" = { + anchor = "top-left"; + }; + }; + ``` ''; }; }; @@ -158,6 +172,28 @@ in (lib.hm.assertions.assertPlatform "services.mako" pkgs lib.platforms.linux) ]; + warnings = lib.optional (cfg.criteria != { }) '' + The option `services.mako.criteria` is deprecated and will be removed in a future release. + Please use `services.mako.settings` with nested attributes instead. + + For example, instead of: + criteria = { + "actionable=true" = { + anchor = "top-left"; + }; + }; + + Use: + settings = { + # Global settings here... + + # Criteria sections + "actionable=true" = { + anchor = "top-left"; + }; + }; + ''; + home.packages = [ cfg.package ]; xdg.configFile."mako/config" = mkIf (cfg.settings != { } || cfg.criteria != { }) {