mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-08 10:01:05 +01:00
kakoune: implement a final package option (#7275)
This commit is contained in:
parent
04672588c6
commit
30b6daf872
1 changed files with 9 additions and 1 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue