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";
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;
};
};
};