From 30b6daf8723429190e56bc2f296837578c41aca8 Mon Sep 17 00:00:00 2001 From: MaeIsBad <26093674+MaeIsBad@users.noreply.github.com> Date: Mon, 16 Jun 2025 00:23:27 +0200 Subject: [PATCH] kakoune: implement a final package option (#7275) --- modules/programs/kakoune.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/programs/kakoune.nix b/modules/programs/kakoune.nix index a5f82458d..becc75196 100644 --- a/modules/programs/kakoune.nix +++ b/modules/programs/kakoune.nix @@ -688,6 +688,12 @@ in package = lib.mkPackageOption pkgs "kakoune-unwrapped" { nullable = true; }; + finalPackage = mkOption { + type = types.nullOr types.package; + readOnly = true; + description = "Resulting customized kakoune package."; + }; + config = mkOption { type = types.nullOr configModule; default = { }; @@ -746,7 +752,9 @@ in The listed plugins will not be installed. ''; - home.packages = lib.mkIf (cfg.package != null) [ kakouneWithPlugins ]; + programs.kakoune.finalPackage = lib.mkIf (cfg.package != null) kakouneWithPlugins; + + home.packages = lib.mkIf (cfg.finalPackage != null) [ cfg.finalPackage ]; home.sessionVariables = mkIf cfg.defaultEditor { EDITOR = "kak"; }; xdg.configFile = lib.mkMerge [ { "kak/kakrc".source = configFile; }