feat(nix/prog): install zsh
This commit is contained in:
parent
72f250512d
commit
12c11329ba
2 changed files with 23 additions and 2 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -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
|
||||
|
|
21
nix/home.nix
21
nix/home.nix
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue