From e71d405146cb2306ea3def3302e91a0160750de6 Mon Sep 17 00:00:00 2001 From: vali Date: Fri, 12 Apr 2024 15:22:33 +0200 Subject: [PATCH] fixed your horrendous coding layout of oh-my.zsh --- modules/cli/zsh.nix | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/modules/cli/zsh.nix b/modules/cli/zsh.nix index 86aec3e..3b80ce9 100644 --- a/modules/cli/zsh.nix +++ b/modules/cli/zsh.nix @@ -16,19 +16,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"]; - }; - }; + ohmyzsh = { + enable = mkEnableOption "ohmyzsh"; + 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 { @@ -83,10 +83,10 @@ in { }; } ]; - oh-my-zsh = mkIf cfg.oh-my-zsh { - enable = cfg.oh-my-zsh.enable; - theme = cfg.oh-my-zsh.theme; - plugins = cfg.oh-my-zsh.plugins; + oh-my-zsh = mkIf cfg.ohmyzsh { + enable = true; + theme = cfg.ohmyzsh.theme; + plugins = cfg.ohmyzsh.plugins; }; }; };