blob: 7d7a261bc04a1206c6a3f8623e84406fb1b2e422 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{ config, lib, pkgs, ... }:
{
options.shell.zsh = {
enable = lib.mkEnableOption "Enables zsh.";
};
config = lib.mkIf config.shell.zsh.enable {
shell.default = "${pkgs.zsh}/bin/zsh";
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;
};
}
|