mirror of
https://github.com/nix-community/home-manager
synced 2024-12-03 00:19:46 +01:00
zsh-abbr: add package option
This commit is contained in:
parent
4964f3c6fc
commit
441fae847d
1 changed files with 3 additions and 1 deletions
|
@ -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";
|
||||
}];
|
||||
|
||||
|
|
Loading…
Reference in a new issue