Refactor configuration to be more modular.
TODO: Update the documentation in the README to reflect changes
This commit is contained in:
parent
7a30ff9f94
commit
af0078d7af
32 changed files with 889 additions and 1125 deletions
43
modules/packages/zsh.nix
Normal file
43
modules/packages/zsh.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
users.users.hu.shell = pkgs.zsh;
|
||||
|
||||
environment.variables = {
|
||||
ZDOTDIR = "/home/hu/.config/zsh";
|
||||
};
|
||||
|
||||
home-manager.users.hu = {
|
||||
home.packages = with pkgs; [
|
||||
fzf
|
||||
thefuck
|
||||
zsh-fzf-tab
|
||||
zsh-completions
|
||||
zsh-autosuggestions
|
||||
zsh-syntax-highlighting
|
||||
nix-zsh-completions
|
||||
zsh-nix-shell
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
ZDOTDIR = "/home/hu/.config/zsh";
|
||||
};
|
||||
|
||||
home.file."/home/hu/.config/zsh/conf.d" = {
|
||||
source = ../../dotfiles/zsh/conf.d;
|
||||
recursive = true;
|
||||
};
|
||||
|
||||
home.file."/home/hu/.config/zsh/.zshrc" = {
|
||||
text = ''
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
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"
|
||||
FZF_TAB_PLUGIN="${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh"
|
||||
'' + (builtins.readFile ../../dotfiles/zsh/.zshrc);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue