1
0
Fork 0
mirror of https://git.oat.zone/dark-firepit/dotfiles synced 2024-04-28 17:55:06 +02:00
git.oat.zone--dark-firepit-.../modules/shell/zsh.nix
System administrator ec00c09f2e Dotfiles
2022-01-11 17:44:40 +00:00

38 lines
815 B
Nix

{ config, options, lib, pkgs, ... }:
with lib;
let
cfg = config.modules.shell.zsh;
inherit (config) configDir;
in {
options.modules.shell.zsh = {
enable = mkOption {
type = types.bool;
default = false;
};
executable = mkOption {
type = types.str;
default = "${pkgs.fish}/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;
};
};
};
}