diff --git a/modules/cli/zsh.nix b/modules/cli/zsh.nix index a1cb6ad..02b2647 100644 --- a/modules/cli/zsh.nix +++ b/modules/cli/zsh.nix @@ -15,6 +15,19 @@ in { description = "enable zsh profiling"; default = false; }; + oh-my-zsh = { + enable = mkEnableOption "oh-my-zsh"; + theme = mkOption { + type = types.str; + description = "oh-my-zsh theme"; + default = "alanpeabody"; + }; + plugins = mkOption { + type = types.listOf(types.str); + description = "oh-my-zsh plugins (like git)"; + default = ["git"]; + }; + }; }; config = mkIf cfg.enable { @@ -69,6 +82,11 @@ in { }; } ]; + oh-my-zsh = mkIf cfg.oh-my-zsh.enable { + enable = cfg.oh-my-zsh.enable; + theme = cfg.oh-my-zsh.theme; + plugins = cfg.oh-my-zsh.plugins; + }; }; }; };