Add support for custom OMZ modules
Change-Id: I5df5d65865f140c1d0243a2940bee7e6490decc9
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/637
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Tested-by: Samuel Shuert <coded@clicks.codes>
diff --git a/modules/home/shell/zsh/default.nix b/modules/home/shell/zsh/default.nix
index 30aca44..b2491c9 100644
--- a/modules/home/shell/zsh/default.nix
+++ b/modules/home/shell/zsh/default.nix
@@ -23,6 +23,11 @@
description = "Attrset of ~DIR's";
default = { };
};
+ ohMyZsh.extraPlugins = lib.mkOption {
+ type = lib.types.listOf lib.types.str;
+ description = "List of plugins as strs";
+ default = [ ];
+ };
};
config = lib.mkIf config.chimera.shell.zsh.enable {
@@ -44,7 +49,7 @@
oh-my-zsh = {
enable = true;
- plugins = [ "git" ];
+ plugins = [ "git" ] ++ config.chimera.shell.zsh.ohMyZsh.extraPlugins;
};
};
};