Oh-my-zsh configured

This commit is contained in:
get 2024-04-12 08:13:54 +02:00
commit c4040f2183

View file

@ -15,6 +15,19 @@ in {
description = "enable zsh profiling"; description = "enable zsh profiling";
default = false; 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"];
};
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
@ -69,6 +82,11 @@ in {
}; };
} }
]; ];
oh-my-zsh = mkIf cfg.oh-my-zsh.enable {
enable = cfg.oh-my-zsh.enable;
theme = cfg.oh-my-zsh.theme;
plugins = cfg.oh-my-zsh.plugins;
};
}; };
}; };
}; };