Files
nixos-config/home-manager/commands/commands.nix
2025-08-28 20:40:47 -07:00

148 lines
2.2 KiB
Nix

{
pkgs,
lib,
hostname,
...
}:
{
imports = [
./direnv.nix
./custom/custom.nix
./eza.nix
./fastfetch/fastfetch.nix
./git.nix
./newsboat.nix
./nixvim/default.nix
./starship.nix
./tmux.nix
./zsh.nix
];
home.packages = with pkgs; [
age
age-plugin-1p
age-plugin-yubikey
agedu
bat
b3sum
btop
cbonsai
curl
dig
dust
esptool
fd
ffmpeg-full
fzf
gemini-cli
git-filter-repo
jq
kitty
lazygit
nmap
ocamlPackages.utop
opencode
openconnect
openssl
ripgrep
sage
tailscale
termusic
timg
tldr
trippy
trivy
wget
wireguard-tools
yazi
yt-dlp
yubikey-manager
zstd
]
++ lib.optionals (hostname == "eva-01") [
# cli
parted
traceroute
# cyber
amass
bettercap
bloodhound
bully
burpsuite
cowpatty
crunch
dirbuster
dnschef
ffuf
hash-identifier
hashcat
hashcat-utils
hping
macchanger
medusa
netdiscover
netexec
pwnat
pwncat
reaverwps-t6x
recon-ng
rustscan
sqlmap
steghide
thc-hydra
]
++ lib.optionals (hostname == "eva-02") [
]
++ lib.optionals (hostname == "eva-03") [
# cli
parted
traceroute
]
++ lib.optionals (hostname == "buildbox") [
# cli
parted
traceroute
];
programs = {
ssh = {
enable = true;
matchBlocks = {
global = {
host = "*";
setEnv = {
TERM = "xterm-256color";
};
};
} // lib.optionalAttrs (hostname == "buildbox") {
"192.168.8.109" = {
identityFile = "~/.ssh/gitea-buildbox";
user = "gitea";
};
"github.com" = {
identityFile = "~/.ssh/github-buildbox";
user = "git";
};
};
extraConfig = if hostname == "eva-02"
then ''
IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
''
else ''
IdentityAgent ~/.1password/agent.sock
'';
};
zoxide = {
enable = true;
enableZshIntegration = true;
};
};
}