2023-07-06 20:43:40 +04:00
|
|
|
{ options, config, lib, pkgs, ...}:
|
|
|
|
with lib;
|
|
|
|
let cfg = config.modules.shell.zsh;
|
|
|
|
in {
|
|
|
|
options.modules.shell.zsh = {
|
2023-07-08 00:00:28 +04:00
|
|
|
enable = mkBoolOpt false;
|
2023-07-06 20:43:40 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
promptInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-heme";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|