mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-26 14:45:29 -08:00
50 lines
869 B
Nix
50 lines
869 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
|
|
in
|
|
{
|
|
|
|
programs.zsh = {
|
|
enable = true; # technically also enabled in user shell
|
|
dotDir = ".config/zsh";
|
|
|
|
initExtraFirst = ''
|
|
pfetch
|
|
fortune
|
|
'';
|
|
|
|
initExtra = ''
|
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
|
'';
|
|
|
|
autocd = true;
|
|
history = {
|
|
path = "$HOME/.histfile";
|
|
size = 2000;
|
|
share = true;
|
|
ignoreDups = false;
|
|
};
|
|
|
|
plugins = [
|
|
{
|
|
name = "powerline10k";
|
|
src = pkgs.zsh-powerlevel10k;
|
|
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
|
}
|
|
];
|
|
|
|
shellAliases = {
|
|
cat = "bat";
|
|
doom = "~/.emacs.d/bin/doom";
|
|
ls = "eza";
|
|
gust = "/home/nixolas/Documents/Gust/target/debug/gust";
|
|
rm = "rmtrash";
|
|
};
|
|
};
|
|
|
|
home.file.".p10k.zsh" = {
|
|
source = ../rsrcs/.p10k.zsh;
|
|
};
|
|
|
|
}
|