fixed your horrendous coding layout of oh-my.zsh

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

View file

@ -16,8 +16,8 @@ in {
description = "enable zsh profiling";
default = false;
};
oh-my-zsh = {
enable = mkEnableOption "oh-my-zsh";
ohmyzsh = {
enable = mkEnableOption "ohmyzsh";
theme = mkOption {
type = types.str;
description = "oh-my-zsh theme";
@ -26,7 +26,7 @@ in {
plugins = mkOption {
type = types.listOf(types.str);
description = "oh-my-zsh plugins (like git)";
default = ["git"];
default = [ git ];
};
};
};
@ -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;
};
};
};