dotfiles/nix/home/programs/zsh/default.nix

31 lines
533 B
Nix
Raw Normal View History

2021-10-05 23:42:21 -07:00
{ pkgs, ... }:
with builtins; {
home.packages = with pkgs; [
zsh-autosuggestions
zsh-syntax-highlighting
];
2021-10-05 23:42:21 -07:00
programs.zsh = {
enable = true;
enableCompletion = true;
defaultKeymap = "viins";
initExtra = readFile ./zshrc;
oh-my-zsh = {
enable = true;
theme = "typewritten";
custom = "$HOME/.oh-my-zsh/custom";
plugins = [
"vi-mode"
];
};
};
home.file.".oh-my-zsh/custom/themes/typewritten.zsh-theme" = {
source = ./typewritten.zsh-theme;
};
}