From 441fae847ddfe20f9f9a4c47345691a205bb772c Mon Sep 17 00:00:00 2001 From: Nova Leary Date: Sun, 1 Dec 2024 11:23:18 -0600 Subject: [PATCH] zsh-abbr: add package option --- modules/programs/zsh/zsh-abbr.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/programs/zsh/zsh-abbr.nix b/modules/programs/zsh/zsh-abbr.nix index 47f29f211..096e5da5a 100644 --- a/modules/programs/zsh/zsh-abbr.nix +++ b/modules/programs/zsh/zsh-abbr.nix @@ -9,6 +9,8 @@ in { enable = mkEnableOption "zsh-abbr - zsh manager for auto-expanding abbreviations"; + package = mkPackageOption pkgs "zsh-abbr" { }; + abbreviations = mkOption { type = types.attrsOf types.str; default = { }; @@ -27,7 +29,7 @@ in { config = mkIf cfg.enable { programs.zsh.plugins = [{ name = "zsh-abbr"; - src = pkgs.zsh-abbr; + src = cfg.package; file = "share/zsh/zsh-abbr/zsh-abbr.plugin.zsh"; }];