fixed your horrendous coding layout of oh-my.zsh

This commit is contained in:
Charlie Root 2024-04-12 15:22:33 +02:00
commit fb4fed3430

View file

@ -16,8 +16,8 @@ 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";
@ -26,7 +26,7 @@ in {
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 ];
}; };
}; };
}; };
@ -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;
}; };
}; };
}; };