nixos/home/zsh.nix
Evie Litherland-Smith 9394a99a4c Move a bunch of default.nix up a level
Loads of expressions were a single default.nix in a directory, instead
just make a single directory
Hyprland is the only directory of expressions left
Move a few things around to fit this a bit better
Add home/default.nix to defer "import all" from flake.nix

Remove work email from default account set up, add to work laptop
specifically and only

Clean up a few unused expressions
2023-09-15 07:13:52 +01:00

52 lines
1.3 KiB
Nix

{ config, catppuccin-themes, ... }: {
home.packages = with pkgs; [ dig silver-searcher gnumake ];
programs = {
zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
enableVteIntegration = true;
autocd = true;
dotDir = ".config/zsh";
historySubstringSearch.enable = true;
history.path = "${config.xdg.dataHome}/zsh/history";
initExtraFirst = ''
source ${catppuccin-themes.zsh}
'';
initExtra = ''
xdg-query-program () {
FILETYPE=$(xdg-mime query filetype $@)
DEFAULT=$(xdg-mime query default $FILETYPE)
echo "$FILETYPE -> $DEFAULT"
}
'';
oh-my-zsh = {
enable = true;
plugins = [
# Productivity
"aliases"
"colored-man-pages"
"command-not-found"
"extract"
# Build tools
"git"
"gitignore"
# Misc
"lol"
"rand-quote"
];
theme = "";
};
};
direnv = {
enable = true;
nix-direnv.enable = true;
enableZshIntegration = true;
};
fzf.enableZshIntegration = true;
keychain.enableZshIntegration = true;
starship.enableZshIntegration = true;
};
}