mirror of
https://github.com/nix-community/home-manager
synced 2024-12-03 16:39: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 =
|
enable =
|
||||||
mkEnableOption "zsh-abbr - zsh manager for auto-expanding abbreviations";
|
mkEnableOption "zsh-abbr - zsh manager for auto-expanding abbreviations";
|
||||||
|
|
||||||
|
package = mkPackageOption pkgs "zsh-abbr" { };
|
||||||
|
|
||||||
abbreviations = mkOption {
|
abbreviations = mkOption {
|
||||||
type = types.attrsOf types.str;
|
type = types.attrsOf types.str;
|
||||||
default = { };
|
default = { };
|
||||||
|
@ -27,7 +29,7 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.zsh.plugins = [{
|
programs.zsh.plugins = [{
|
||||||
name = "zsh-abbr";
|
name = "zsh-abbr";
|
||||||
src = pkgs.zsh-abbr;
|
src = cfg.package;
|
||||||
file = "share/zsh/zsh-abbr/zsh-abbr.plugin.zsh";
|
file = "share/zsh/zsh-abbr/zsh-abbr.plugin.zsh";
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue