nixos/modules/shell/zsh.nix

19 lines
391 B
Nix
Raw Normal View History

{ options, config, lib, pkgs, ...}:
with lib;
let cfg = config.modules.shell.zsh;
in {
options.modules.shell.zsh = {
2023-07-07 23:46:47 +04:00
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf cfg.enable {
programs.zsh = {
enable = true;
promptInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-heme";
};
};
}