105 lines
2.0 KiB
Nix
105 lines
2.0 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
home.packages = with pkgs; [
|
|
|
|
|
|
];
|
|
|
|
programs = {
|
|
fastfetch.enable = true;
|
|
fzf.enable = true;
|
|
bat.enable = true;
|
|
btop.enable = true;
|
|
kitty.enable = true;
|
|
yazi.enable = true;
|
|
starship.enable = true;
|
|
lazygit.enable = true;
|
|
thefuck.enable = true;
|
|
thefuck.enableZshIntegration = true;
|
|
|
|
git = {
|
|
enable = true;
|
|
userName = "rogueking";
|
|
userEmail = "miguel@muniz.org";
|
|
};
|
|
|
|
eza = {
|
|
enable = true;
|
|
icons = "auto";
|
|
enableZshIntegration = true;
|
|
extraOptions = [
|
|
"--group-directories-first"
|
|
];
|
|
};
|
|
|
|
ssh = {
|
|
enable = true;
|
|
matchBlocks = {
|
|
global = {
|
|
host = "*";
|
|
setEnv = {
|
|
TERM = "xterm-256color";
|
|
};
|
|
};
|
|
};
|
|
extraConfig = ''
|
|
IdentityAgent ~/.1password/agent.sock
|
|
'';
|
|
};
|
|
|
|
zoxide = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
};
|
|
|
|
zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
autosuggestion.enable = true;
|
|
syntaxHighlighting.enable = true;
|
|
historySubstringSearch.enable = true;
|
|
|
|
shellAliases = {
|
|
cd = "z";
|
|
cat = "bat";
|
|
catp = "bat -p";
|
|
fk = "thefuck";
|
|
fu = "thefuck";
|
|
fuck = "thefuck";
|
|
grep = "grep --color=auto";
|
|
lg = "lazygit";
|
|
ll = "eza -la";
|
|
ls = "eza --color=auto";
|
|
lt = "eza --tree";
|
|
open = "xdg-open";
|
|
tulpn = "sudo netstat -tulpn";
|
|
rebuild = "sudo nixos-rebuild switch --flake /etc/nixos#default";
|
|
};
|
|
|
|
envExtra = ''
|
|
eval $(thefuck --alias)
|
|
'';
|
|
|
|
profileExtra = ''
|
|
export SSH_AUTH_SOCK=~/.1password/agent.sock
|
|
'';
|
|
|
|
initExtra = ''
|
|
fastfetch
|
|
'';
|
|
|
|
history = {
|
|
size = 10000;
|
|
path = "${config.xdg.dataHome}/zsh/history";
|
|
};
|
|
|
|
oh-my-zsh = {
|
|
enable = true;
|
|
#plugins = ["thefuck"];
|
|
};
|
|
};
|
|
|
|
};
|
|
}
|