2022-05-22 05:31:45 -07:00
|
|
|
{ self, lib, pkgs, config, ... }:
|
2022-05-21 20:53:03 -07:00
|
|
|
{
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
binutils
|
|
|
|
coreutils
|
|
|
|
dnsutils
|
|
|
|
dosfstools
|
|
|
|
#git
|
|
|
|
bottom
|
|
|
|
gptfdisk
|
2022-05-22 04:10:29 -07:00
|
|
|
starship
|
2022-05-21 20:53:03 -07:00
|
|
|
iputils
|
|
|
|
jq
|
|
|
|
manix
|
|
|
|
moreutils
|
|
|
|
nix-index
|
|
|
|
cached-nix-shell
|
|
|
|
nmap
|
|
|
|
ripgrep
|
|
|
|
skim
|
|
|
|
tealdeer
|
|
|
|
usbutils
|
|
|
|
utillinux
|
|
|
|
whois
|
|
|
|
iftop
|
|
|
|
wget
|
|
|
|
curl
|
|
|
|
exa
|
|
|
|
bat
|
|
|
|
fd
|
2022-05-22 04:10:29 -07:00
|
|
|
trash-cli
|
|
|
|
nix-index
|
2022-05-21 20:53:03 -07:00
|
|
|
ag
|
|
|
|
tcpdump
|
|
|
|
mtr
|
|
|
|
file
|
|
|
|
lsof
|
|
|
|
atool
|
|
|
|
inotify-tools
|
|
|
|
strace
|
|
|
|
zip
|
|
|
|
unzip
|
|
|
|
rsync
|
|
|
|
tmux
|
|
|
|
pwgen
|
|
|
|
glow
|
|
|
|
pass
|
|
|
|
less
|
|
|
|
gdb
|
|
|
|
xxd
|
|
|
|
kitty
|
|
|
|
taskwarrior
|
|
|
|
gnupg
|
|
|
|
syncthing
|
|
|
|
dijo
|
2022-05-22 05:31:45 -07:00
|
|
|
flameshot
|
2022-05-21 20:53:03 -07:00
|
|
|
#ssb-patchwork
|
|
|
|
libreoffice
|
|
|
|
fontconfig
|
|
|
|
pandoc
|
|
|
|
];
|
|
|
|
|
2022-05-22 04:10:29 -07:00
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
2022-05-22 05:31:45 -07:00
|
|
|
enableCompletion = true;
|
|
|
|
enableAutosuggestions = true;
|
2022-05-22 04:10:29 -07:00
|
|
|
|
2022-05-22 05:31:45 -07:00
|
|
|
initExtra = ''
|
|
|
|
flakify() {
|
|
|
|
if [ ! -e flake.nix ]; then
|
|
|
|
nix flake new -t github:nix-community/nix-direnv .
|
|
|
|
elif [ ! -e .envrc ]; then
|
|
|
|
echo "use flake" > .envrc
|
|
|
|
direnv allow
|
|
|
|
fi
|
|
|
|
vim flake.nix
|
|
|
|
}
|
|
|
|
'';
|
2022-05-22 04:10:29 -07:00
|
|
|
sessionVariables = {
|
|
|
|
EDITOR = "nvim";
|
|
|
|
};
|
2022-05-22 05:31:45 -07:00
|
|
|
};
|
|
|
|
programs.starship = {
|
|
|
|
enable = true;
|
|
|
|
enableZshIntegration = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.fzf = {
|
|
|
|
enable = true;
|
|
|
|
enableZshIntegration = true;
|
2022-05-22 04:10:29 -07:00
|
|
|
};
|
2022-05-21 20:53:03 -07:00
|
|
|
|
2022-05-22 04:10:29 -07:00
|
|
|
programs.direnv = {
|
|
|
|
enable = true;
|
|
|
|
enableZshIntegration = true;
|
|
|
|
};
|
2022-05-21 20:53:03 -07:00
|
|
|
|
2022-05-22 05:31:45 -07:00
|
|
|
services.kdeconnect.enable = true;
|
|
|
|
|
2022-05-22 04:10:29 -07:00
|
|
|
home.shellAliases = {
|
|
|
|
# quick cd
|
|
|
|
".." = "cd ..";
|
|
|
|
"..." = "cd ../..";
|
|
|
|
"...." = "cd ../../..";
|
|
|
|
"....." = "cd ../../../..";
|
|
|
|
|
|
|
|
# modern cli tools
|
|
|
|
ls = "exa";
|
2022-05-22 05:31:45 -07:00
|
|
|
l = "exa -l";
|
|
|
|
la = "exa -la";
|
2022-05-22 04:10:29 -07:00
|
|
|
tree = "ls --tree";
|
|
|
|
cat = "bat";
|
|
|
|
unzip = "aunpack";
|
|
|
|
copy = "xclip -selection clipboard";
|
|
|
|
paste = "xclip -selection clipboard -o";
|
|
|
|
|
|
|
|
# task warrior
|
|
|
|
t = "task";
|
|
|
|
ta = "task add";
|
2022-05-22 06:20:46 -07:00
|
|
|
tn = "task-note";
|
2022-05-22 04:10:29 -07:00
|
|
|
tm = "task modify";
|
|
|
|
te = "task edit";
|
|
|
|
ts = "task sync";
|
|
|
|
|
2022-05-22 05:31:45 -07:00
|
|
|
scrot = "flameshot screen -c -p ~/screenshots/";
|
|
|
|
scrotgui = "flameshot gui -p ~/screenshots/";
|
2022-05-22 04:10:29 -07:00
|
|
|
|
|
|
|
# git
|
|
|
|
g = "git";
|
|
|
|
|
|
|
|
# grep
|
|
|
|
grep = "rg";
|
|
|
|
gi = "grep -i";
|
|
|
|
|
|
|
|
# internet ip
|
|
|
|
myip = "dig +short myip.opendns.com @208.67.222.222 2>&1";
|
2022-05-22 05:31:45 -07:00
|
|
|
|
|
|
|
# nix
|
|
|
|
n = "nix";
|
|
|
|
np = "n profile";
|
|
|
|
ni = "np install";
|
|
|
|
nr = "np remove";
|
|
|
|
ns = "n search --no-update-lock-file";
|
|
|
|
nf = "n flake";
|
|
|
|
nepl = "n repl '<nixpkgs>'";
|
|
|
|
srch = "ns nixos";
|
|
|
|
orch = "ns override";
|
|
|
|
nrb = "cd /tmp; sudo nixos-rebuild switch --flake '/etc/nixos/#curve'; cd $OLDPWD";
|
|
|
|
nrt = "cd /tmp; sudo nixos-rebuild test --flake '/etc/nixos/#curve'; cd $OLDPWD";
|
|
|
|
ned = "cd /etc/nixos; vim";
|
|
|
|
ncd = "cd /etc/nixos";
|
|
|
|
mn = ''
|
|
|
|
manix "" | grep '^# ' | sed 's/^# \(.*\) (.*/\1/;s/ (.*//;s/^# //' | sk --preview="manix '{}'" | xargs manix
|
|
|
|
'';
|
|
|
|
# fix nixos-option
|
|
|
|
nixos-option = "nixos-option -I nixpkgs=${self}/lib/compat";
|
|
|
|
|
|
|
|
# sudo
|
|
|
|
s = "sudo -E ";
|
|
|
|
pls = "s";
|
|
|
|
si = "sudo -i";
|
|
|
|
se = "sudoedit";
|
|
|
|
|
|
|
|
# top
|
|
|
|
top = "btm";
|
|
|
|
|
|
|
|
# systemd
|
|
|
|
ctl = "systemctl";
|
|
|
|
stl = "s systemctl";
|
|
|
|
utl = "systemctl --user";
|
|
|
|
ut = "systemctl --user start";
|
|
|
|
un = "systemctl --user stop";
|
|
|
|
up = "s systemctl start";
|
|
|
|
dn = "s systemctl stop";
|
|
|
|
jtl = "journalctl";
|
|
|
|
|
|
|
|
# quick ssh
|
2022-05-22 06:20:46 -07:00
|
|
|
kssh = "kitten +kitty ssh";
|
|
|
|
sm = "ssh 10.0.69.4"; # box over wireguard
|
|
|
|
ss = "ssh sealight.xyz"; # helix
|
2022-05-22 05:31:45 -07:00
|
|
|
sc = "ssh lakhwara.com"; # cube
|
2022-05-21 20:53:03 -07:00
|
|
|
};
|
|
|
|
}
|