From fe438a67d7ece0a2efc8cca33b621053c58c5a3b Mon Sep 17 00:00:00 2001 From: winston Date: Sun, 3 Sep 2023 00:48:39 +0200 Subject: [PATCH] feat(zsh): os-specific omz plugins --- home/apps/zsh.nix | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/home/apps/zsh.nix b/home/apps/zsh.nix index f499331..7562c38 100644 --- a/home/apps/zsh.nix +++ b/home/apps/zsh.nix @@ -1,6 +1,7 @@ { config, flakePath, + lib, pkgs, ... }: let @@ -113,14 +114,19 @@ in { dotDir = ".config/zsh"; oh-my-zsh = { enable = true; - plugins = [ - "colored-man-pages" - "colorize" - "docker" - "docker-compose" - "git" - "kubectl" - ]; + plugins = + [ + "colored-man-pages" + "colorize" + "docker" + "docker-compose" + "git" + "kubectl" + ] + ++ lib.optionals pkgs.stdenv.isDarwin [ + "dash" + "macos" + ]; }; plugins = with pkgs; (zshPlugins [ {