22 current 1970-01-01 01:00:00 23.11.20240229.068d4db 6.1.79 *
This commit is contained in:
parent
6af8978015
commit
aa0dd3ec19
66
home.nix
66
home.nix
@ -20,10 +20,14 @@
|
||||
# The home.packages option allows you to install Nix packages into your
|
||||
# environment.
|
||||
home.packages = [
|
||||
pkgs.zsh
|
||||
pkgs.starship
|
||||
pkgs.zoxide
|
||||
pkgs.nerdfonts
|
||||
pkgs.lazygit
|
||||
pkgs.btop
|
||||
pkgs.bat
|
||||
pkgs.eza
|
||||
pkgs.rustup
|
||||
pkgs.keepassxc
|
||||
];
|
||||
@ -59,7 +63,67 @@
|
||||
# /etc/profiles/per-user/max/etc/profile.d/hm-session-vars.sh
|
||||
#
|
||||
home.sessionVariables = {
|
||||
# EDITOR = "emacs";
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableAutosuggestions = true;
|
||||
enableCompletion = true;
|
||||
defaultKeymap = "emacs";
|
||||
dotDir = ".config/zsh";
|
||||
history.expireDuplicatesFirst = true;
|
||||
history.path = "$ZDOTDIR/.zsh_history";
|
||||
historySubstringSearch.enable = true;
|
||||
shellAliases = {
|
||||
ls = "exa --icons -a --group-directories-first";
|
||||
diff = "diff --color=auto";
|
||||
grep = "grep --color=auto";
|
||||
ip = "ip --color=auto";
|
||||
mkdir = "mkdir -p";
|
||||
gst = "git status";
|
||||
gc = "git commit";
|
||||
ga = "git add";
|
||||
gpl = "git pull";
|
||||
gpu = "git push";
|
||||
gd = "git diff";
|
||||
gch = "git checkout";
|
||||
gs = "git switch";
|
||||
gre = "git restore";
|
||||
gr = "git remote";
|
||||
gcl = "git clone";
|
||||
glg = "git log --graph --abbrev-commit --decorate --format=format:'%C(bold green)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold yellow)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all";
|
||||
gb = "git branch";
|
||||
gm = "git merge";
|
||||
gf = "git fetch";
|
||||
};
|
||||
syntaxHighlighting.enable = true;
|
||||
syntaxHighlighting.highlighters = ["main" "brackets"];
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
enableZshIntegration = true;
|
||||
settings = {
|
||||
add_newline = false;
|
||||
command_timeout = 5000;
|
||||
character = {
|
||||
success_symbol = "[->](bold green)";
|
||||
error_symbol = "[ X](bold red)";
|
||||
};
|
||||
cmd_duration = {
|
||||
min_time = 500;
|
||||
show_milliseconds = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
enableZshIntegration = true;
|
||||
options = ["--cmd cd"];
|
||||
};
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
|
Loading…
Reference in New Issue
Block a user