2023-12-26 14:48:53 -06:00
|
|
|
{
|
2024-02-21 01:45:26 -06:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
|
|
|
|
home = {
|
|
|
|
username = "jahanson";
|
|
|
|
homeDirectory = "/home/jahanson";
|
2023-12-26 14:48:53 -06:00
|
|
|
};
|
|
|
|
|
2024-02-21 01:45:26 -06:00
|
|
|
# basic configuration of git, please change to your own
|
2023-12-26 14:48:53 -06:00
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "Joseph Hanson";
|
|
|
|
userEmail = "joe@veri.dev";
|
|
|
|
};
|
2024-02-10 12:35:31 -06:00
|
|
|
|
2024-02-21 01:45:26 -06:00
|
|
|
|
2023-12-26 14:48:53 -06:00
|
|
|
# exa replacement, ls replacement.
|
|
|
|
programs.lsd.enable = true;
|
2024-02-21 01:45:26 -06:00
|
|
|
|
|
|
|
# Fish configuration
|
2023-12-26 14:48:53 -06:00
|
|
|
programs.fish = {
|
|
|
|
enable = true;
|
|
|
|
shellAliases = {
|
|
|
|
# lsd
|
|
|
|
ls = "lsd";
|
|
|
|
ll = "lsd -l";
|
|
|
|
la = "lsd -a";
|
|
|
|
lt = "lsd --tree";
|
|
|
|
lla = "lsd -la";
|
|
|
|
|
2024-02-21 11:45:31 -06:00
|
|
|
# lazydocker --> lazypodman
|
2024-02-21 11:57:11 -06:00
|
|
|
lazypodman="sudo DOCKER_HOST=unix:///run/podman/podman.sock lazydocker";
|
2024-02-21 11:45:31 -06:00
|
|
|
|
2023-12-26 14:48:53 -06:00
|
|
|
# other
|
|
|
|
df = "df -h";
|
|
|
|
du = "du -h";
|
|
|
|
};
|
2024-02-21 01:45:26 -06:00
|
|
|
# rtx hook-env | source
|
|
|
|
# rtx activate fish | source
|
2023-12-26 16:47:00 -06:00
|
|
|
shellInit = ''
|
2023-12-27 08:47:51 -06:00
|
|
|
direnv hook fish | source
|
2023-12-30 11:17:41 -06:00
|
|
|
set -gx PATH $PATH $HOME/.krew/bin
|
2023-12-26 16:47:00 -06:00
|
|
|
'';
|
2023-12-26 14:48:53 -06:00
|
|
|
functions = {
|
|
|
|
fish_greeting = {
|
|
|
|
description = "Set the fish greeting";
|
|
|
|
body = "neofetch";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-02-21 01:45:26 -06:00
|
|
|
# Packages that should be installed to the user profile.
|
2023-12-26 14:48:53 -06:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
# here is some command line tools I use frequently
|
|
|
|
# feel free to add your own or remove some of them
|
|
|
|
|
2024-02-21 01:45:26 -06:00
|
|
|
neofetch
|
|
|
|
go-task
|
|
|
|
|
2024-02-20 23:29:46 -06:00
|
|
|
# terminal file managers
|
2024-02-21 01:45:26 -06:00
|
|
|
nnn
|
2023-12-26 14:48:53 -06:00
|
|
|
ranger
|
2024-02-20 23:29:46 -06:00
|
|
|
yazi
|
|
|
|
|
2023-12-26 14:48:53 -06:00
|
|
|
# archives
|
|
|
|
zip
|
|
|
|
xz
|
|
|
|
unzip
|
|
|
|
p7zip
|
|
|
|
|
|
|
|
# utils
|
|
|
|
ripgrep # recursively searches directories for a regex pattern
|
|
|
|
jq # A lightweight and flexible command-line JSON processor
|
|
|
|
yq-go # yaml processer https://github.com/mikefarah/yq
|
|
|
|
fzf # A command-line fuzzy finder
|
2023-12-27 05:58:18 -06:00
|
|
|
age # sops-age encryption
|
2024-02-21 01:45:26 -06:00
|
|
|
sops
|
2023-12-27 05:58:18 -06:00
|
|
|
direnv # shell environment management
|
2023-12-27 10:00:36 -06:00
|
|
|
pre-commit # Pre-commit tasks for git
|
2023-12-28 12:04:26 -06:00
|
|
|
minio-client # S3 management
|
2023-12-29 12:12:25 -06:00
|
|
|
shellcheck
|
2023-12-30 14:08:33 -06:00
|
|
|
envsubst
|
2023-12-26 14:48:53 -06:00
|
|
|
|
|
|
|
# networking tools
|
2024-02-21 01:45:26 -06:00
|
|
|
mtr # A network diagnostic tool
|
2023-12-26 14:48:53 -06:00
|
|
|
iperf3
|
2024-02-21 01:45:26 -06:00
|
|
|
dnsutils # `dig` + `nslookup`
|
2023-12-26 14:48:53 -06:00
|
|
|
ldns # replacement of `dig`, it provide the command `drill`
|
|
|
|
aria2 # A lightweight multi-protocol & multi-source command-line download utility
|
|
|
|
socat # replacement of openbsd-netcat
|
|
|
|
nmap # A utility for network discovery and security auditing
|
2024-02-21 01:45:26 -06:00
|
|
|
ipcalc # it is a calculator for the IPv4/v6 addresses
|
2023-12-26 16:47:00 -06:00
|
|
|
|
2023-12-26 14:48:53 -06:00
|
|
|
# misc
|
|
|
|
cowsay
|
|
|
|
file
|
|
|
|
which
|
|
|
|
tree
|
|
|
|
gnused
|
|
|
|
gnutar
|
|
|
|
gawk
|
|
|
|
zstd
|
|
|
|
gnupg
|
|
|
|
|
|
|
|
# nix related
|
|
|
|
#
|
|
|
|
# it provides the command `nom` works just like `nix`
|
|
|
|
# with more details log output
|
|
|
|
nix-output-monitor
|
|
|
|
|
2024-02-21 01:45:26 -06:00
|
|
|
btop # replacement of htop/nmon
|
2023-12-26 14:48:53 -06:00
|
|
|
iotop # io monitoring
|
|
|
|
iftop # network monitoring
|
|
|
|
|
|
|
|
# system call monitoring
|
|
|
|
strace # system call monitoring
|
|
|
|
ltrace # library call monitoring
|
|
|
|
lsof # list open files
|
|
|
|
|
|
|
|
# system tools
|
|
|
|
sysstat
|
|
|
|
lm_sensors # for `sensors` command
|
|
|
|
ethtool
|
|
|
|
pciutils # lspci
|
|
|
|
usbutils # lsusb
|
|
|
|
];
|
|
|
|
|
|
|
|
home.stateVersion = "23.11";
|
|
|
|
programs.home-manager.enable = true;
|
2024-02-21 01:45:26 -06:00
|
|
|
}
|