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

33 lines
589 B
Nix
Raw Normal View History

{ pkgs, config, ... }:
2021-10-05 23:42:21 -07:00
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";
initContent = readFile ./zshrc;
2021-10-05 23:42:21 -07:00
oh-my-zsh = {
enable = true;
theme = "typewritten";
custom = "$HOME/.oh-my-zsh/custom";
plugins = [
"vi-mode"
];
};
dotDir = "${config.xdg.configHome}/zsh";
2021-10-05 23:42:21 -07:00
};
home.file.".oh-my-zsh/custom/themes/typewritten.zsh-theme" = {
source = ./typewritten.zsh-theme;
};
}