aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shell/zsh/default.nix
blob: c553ec42213d451cbfcd82ab922e9d9c2da264e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ config, lib, pkgs, ... }:

{
	options.shell.zsh = {
		enable = lib.mkEnableOption "Enables zsh.";
	};

	config = lib.mkIf config.shell.zsh.enable {
		programs.zsh.enable = true;
		programs.zsh.dotDir = ".config/zsh";
		programs.zsh.history.path = "${config.xdg.cacheHome}/zsh/history";
		programs.zsh.initExtra = builtins.readFile ./zshrc;
		programs.zsh.shellAliases = config.shell.alias;
		shell.default = "${pkgs.zsh}/bin/zsh";
	};
}