2024-06-06 12:41:31 +02:00
|
|
|
{ config, pkgs, ... }:
|
2024-05-24 21:33:00 +02:00
|
|
|
|
|
|
|
{
|
2024-06-06 12:41:31 +02:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
fzf
|
2024-07-15 01:25:14 +02:00
|
|
|
thefuck
|
2024-06-06 12:41:31 +02:00
|
|
|
zsh-fzf-tab
|
|
|
|
zsh-completions
|
|
|
|
zsh-autosuggestions
|
|
|
|
zsh-syntax-highlighting
|
|
|
|
nix-zsh-completions
|
2024-07-15 01:25:14 +02:00
|
|
|
zsh-nix-shell
|
2024-06-06 12:41:31 +02:00
|
|
|
];
|
|
|
|
|
2024-06-09 22:46:31 +02:00
|
|
|
home.sessionVariables = {
|
|
|
|
ZDOTDIR = "${config.xdg.configHome}/zsh";
|
|
|
|
};
|
|
|
|
|
2024-06-06 12:41:31 +02:00
|
|
|
home.file."${config.xdg.configHome}/zsh/conf.d" = {
|
2024-07-25 22:12:51 +02:00
|
|
|
source = ../../dotfiles/zsh/conf.d;
|
2024-05-24 21:33:00 +02:00
|
|
|
recursive = true;
|
|
|
|
};
|
2024-06-06 12:41:31 +02:00
|
|
|
|
|
|
|
home.file."${config.xdg.configHome}/zsh/.zshrc" = {
|
2024-05-24 21:33:00 +02:00
|
|
|
text = ''
|
|
|
|
#!/usr/bin/env zsh
|
2024-07-15 01:25:14 +02:00
|
|
|
|
|
|
|
SYNTAX_PLUGIN="${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
|
|
|
AUTOSUGGEST_PLUGIN="${pkgs.zsh-autosuggestions}/share/zsh-autosuggestions/zsh-autosuggestions.zsh"
|
|
|
|
NIX_SHELL_PLUGIN="${pkgs.zsh-nix-shell}/share/zsh-nix-shell/nix-shell.plugin.zsh"
|
2024-07-25 22:12:51 +02:00
|
|
|
FZF_TAB_PLUGIN="${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh"
|
|
|
|
'' + (builtins.readFile ../../dotfiles/zsh/.zshrc);
|
2024-05-24 21:33:00 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|