feat(nix/prog): install zsh

This commit is contained in:
Dmitriy Pleshevskiy 2022-04-05 16:40:07 +03:00
parent 72f250512d
commit 12c11329ba
2 changed files with 23 additions and 2 deletions

4
.gitignore vendored
View file

@ -9,13 +9,17 @@
!/programs
/programs/*
!/programs/nvim
/programs/nvim/*
!/programs/nvim/init.vim
!/programs/nvim/plugins
!/programs/tmux
/programs/tmux/*
!/programs/tmux/.tmux.conf
!/programs/alacritty
/programs/alacritty/*
!/programs/alacritty/alacritty.yml

View file

@ -22,6 +22,20 @@ in
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
programs.zsh = {
enable = true;
enableAutosuggestions = true;
defaultKeymap = "viins";
dotDir = ".config/zsh";
history.path = "${config.xdg.dataHome}/zsh/zsh_history";
oh-my-zsh = {
enable = true;
theme = "robbyrussell";
};
};
programs.git = {
enable = true;
userName = secrets.git.name;
@ -43,7 +57,10 @@ in
programs.exa = {
enable = true;
# TODO: install zsh and activate aliases
# enableAliases = true;
enableAliases = true;
};
xdg.configFile = {
"alacritty/alacritty.yml".source = ../programs/alacritty/alacritty.yml;
};
}