fixed your horrendous coding layout of oh-my.zsh

This commit is contained in:
vali 2024-04-12 15:22:33 +02:00
commit 1f2131494b

View file

@ -16,19 +16,19 @@ in {
description = "enable zsh profiling"; description = "enable zsh profiling";
default = false; default = false;
}; };
oh-my-zsh = { ohmyzsh = {
enable = mkEnableOption "oh-my-zsh"; enable = mkEnableOption "ohmyzsh";
theme = mkOption { theme = mkOption {
type = types.str; type = types.str;
description = "oh-my-zsh theme"; description = "oh-my-zsh theme";
default = "alanpeabody"; default = "alanpeabody";
}; };
plugins = mkOption { plugins = mkOption {
type = types.listOf(types.str); type = types.listOf(types.str);
description = "oh-my-zsh plugins (like git)"; description = "oh-my-zsh plugins (like git)";
default = ["git"]; default = [ git ];
}; };
}; };
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
@ -83,10 +83,10 @@ in {
}; };
} }
]; ];
oh-my-zsh = mkIf cfg.oh-my-zsh { oh-my-zsh = mkIf cfg.ohmyzsh {
enable = cfg.oh-my-zsh.enable; enable = true;
theme = cfg.oh-my-zsh.theme; theme = cfg.ohmyzsh.theme;
plugins = cfg.oh-my-zsh.plugins; plugins = cfg.ohmyzsh.plugins;
}; };
}; };
}; };