nixos-config/modules/shell/zsh.nix

24 lines
554 B
Nix
Raw Normal View History

2020-08-06 15:35:49 +00:00
# The Zoomer shell is cool for them prompts.
{ config, options, lib, pkgs, ... }:
with lib;
{
options.modules.shell.zsh = {
enable = mkOption {
type = types.bool;
default = false;
};
};
# Going to use the home-manager module for zsh since it is cool.
config = mkIf config.modules.shell.zsh.enable {
programs.zsh = {
enable = true;
enableCompletion = true;
enableAutosuggestions = true;
dotDir = "${config.xdg.configHome}";
history.path = "${config.xdg.dataHome}/zsh/history";
};
};
}