Initial configuration
This commit is contained in:
commit
294fd9dcf3
35 changed files with 5369 additions and 0 deletions
19
common/home.nix
Normal file
19
common/home.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
home = {
|
||||
username = "avery";
|
||||
homeDirectory = "/home/avery";
|
||||
stateVersion = "24.05";
|
||||
packages = with pkgs; [
|
||||
python3
|
||||
rclone
|
||||
xdg-user-dirs
|
||||
xdg-utils
|
||||
];
|
||||
};
|
||||
programs.home-manager.enable = true;
|
||||
}
|
50
common/zsh/default.nix
Normal file
50
common/zsh/default.nix
Normal file
|
@ -0,0 +1,50 @@
|
|||
{ config, pkgs, ...}:
|
||||
let
|
||||
normalTheme = ./powerline10k/p10k.zsh;
|
||||
ttyTheme = ./powerline10k/p10k-tty.zsh;
|
||||
in {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
initExtra = ''
|
||||
bindkey "^[OA" history-beginning-search-backward-end
|
||||
bindkey "^[OB" history-beginning-search-forward-end
|
||||
bindkey "^r" history-incremental-search-backward
|
||||
|
||||
zstyle ':completion::complete:*' use-cache on
|
||||
zstyle ':completion::complete:*' cache-path ~/.zsh/cache/$HOST
|
||||
zstyle ':completion:*' menu select=1 _complete _ignored _approximate
|
||||
zstyle ':completion:*' verbose yes
|
||||
zstyle ':completion:*:descriptions' format '%B%d%b'
|
||||
zstyle ':completion:*:messages' format '%d'
|
||||
zstyle ':completion:*:warnings' format 'No matches for: %d'
|
||||
zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
|
||||
zstyle ':completion:*' group-name \'\'
|
||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
|
||||
|
||||
if zmodload zsh/terminfo && (( terminfo[colors] >= 256 )); then
|
||||
[[ ! -f ${normalTheme} ]] || source ${normalTheme}
|
||||
else
|
||||
[[ ! -f ${ttyTheme} ]] || source ${ttyTheme}
|
||||
fi
|
||||
|
||||
fastfetch
|
||||
'';
|
||||
initExtraFirst = ''
|
||||
setopt AUTO_PUSHD
|
||||
setopt SHARE_HISTORY
|
||||
setopt MENUCOMPLETE
|
||||
autoload -U history-search-end
|
||||
zle -N history-beginning-search-backward-end history-search-end
|
||||
zle -N history-beginning-search-forward-end history-search-end
|
||||
'';
|
||||
history.path = "${config.xdg.dataHome}/zhistory";
|
||||
plugins = [
|
||||
{
|
||||
name = "powerlevel10k";
|
||||
src = pkgs.zsh-powerlevel10k;
|
||||
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||
}
|
||||
];
|
||||
syntaxHighlighting.enable = true;
|
||||
};
|
||||
}
|
1621
common/zsh/powerline10k/p10k-tty.zsh
Normal file
1621
common/zsh/powerline10k/p10k-tty.zsh
Normal file
File diff suppressed because it is too large
Load diff
1605
common/zsh/powerline10k/p10k.zsh
Normal file
1605
common/zsh/powerline10k/p10k.zsh
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue