15 lines
342 B
Nix
15 lines
342 B
Nix
{ options, config, lib, pkgs, ...}:
|
|
with lib;
|
|
let cfg = config.modules.shell.zsh;
|
|
in {
|
|
options.modules.shell.zsh = {
|
|
enable = mkBoolOpt false;
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.zsh = {
|
|
enable = true;
|
|
promptInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-heme";
|
|
};
|
|
};
|
|
}
|