From 135ce1a40bd5fa0eecc0b84b4f3c8fb96f86d7c8 Mon Sep 17 00:00:00 2001 From: get Date: Fri, 12 Apr 2024 08:13:54 +0200 Subject: [PATCH] Oh-my-zsh configured --- modules/cli/zsh.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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; + }; }; }; };