From 12c11329ba291693385ffb6f3b01d9002bf047e2 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Tue, 5 Apr 2022 16:40:07 +0300 Subject: [PATCH] feat(nix/prog): install zsh --- .gitignore | 4 ++++ nix/home.nix | 21 +++++++++++++++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 6869b77..45a1582 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/nix/home.nix b/nix/home.nix index e2a89c3..66aa325 100644 --- a/nix/home.nix +++ b/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; }; }