1
0
mirror of https://git.oat.zone/dark-firepit/dotfiles synced 2024-11-29 16:53:45 +01:00
git.oat.zone--dark-firepit-.../modules/shell/zsh.nix
2022-01-29 11:47:38 +00:00

37 lines
786 B
Nix

{ config, options, lib, pkgs, ... }:
with lib;
let
cfg = config.modules.shell.zsh;
in {
options.modules.shell.zsh = {
enable = mkOption {
type = types.bool;
default = false;
};
executable = mkOption {
type = types.str;
default = "${pkgs.zsh}/bin/zsh";
};
};
config = mkIf cfg.enable {
# user.packages = with pkgs; [ nix-zsh-completions ];
# home.configFile."zsh".source = "${configDir}/zsh";
home._.programs.zsh = {
enable = true;
enableCompletion = true;
enableAutosuggestions = true;
# dotDir = "${config.home.configFile."zsh".source}";
dotDir = ".config/zsh";
history = {
path = "$XDG_DATA_HOME/zsh/zsh_history";
save = 1000;
size = 1000;
};
};
};
}