127 lines
2.4 KiB
Plaintext
127 lines
2.4 KiB
Plaintext
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
home.packages = with pkgs; [
|
|
bat
|
|
btop
|
|
dig
|
|
ollama
|
|
openconnect
|
|
putty
|
|
thc-hydra
|
|
tldr
|
|
traceroute
|
|
trivy
|
|
wget
|
|
];
|
|
|
|
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";
|
|
lfs.enable = true;
|
|
signing = {
|
|
signByDefault = true;
|
|
gpgPath = "/opt/1Password/op-ssh-sign";
|
|
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHI7zcxrwwg4VqpGduhPX31aslzXwkRXiM32+8K+aIMu";
|
|
};
|
|
extraConfig = {
|
|
gpg = {
|
|
format = "ssh";
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
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";
|
|
locate = "sudo plocate";
|
|
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;
|
|
};
|
|
};
|
|
|
|
};
|
|
}
|