Fish Functions¶
The interactive shell is Fish, configured in
home/shell.nix. It exports toolchain
paths, decrypts API keys from /run/secrets, runs volinit on launch, and wraps agy to scaffold
projects before launch.
Functions¶
| Function | Description |
|---|---|
priv-sync |
rsync live persistent dirs (Documents, Pictures, repos, keys) into priv.bkup |
setwall |
Set wallpaper globally or per-monitor and re-run the theme pipeline |
tablet |
Use a phone as a Krita pen tablet over USB (Weylus + adb reverse on port 1701) |
colorhex |
Render colored swatches around hex codes in stdin/files/args |
extract |
Universal archive extractor (.tar.zst, .tar.xz, .zip, .deb, …) |
gpgkey |
Generate a 4096-bit RSA GPG key and export the armored public key |
rmspcs |
Replace spaces with underscores in filenames recursively |
ai |
Run a one-off tool from llm-agents.nix (nix run …#<tool>) |
ai-shell |
Spawn an ephemeral shell with one or more llm-agents.nix tools |
cd |
cd that accepts a file path (changes to its directory) |
Aliases (selection)¶
| Alias | Expands to |
|---|---|
nx / nxup / nxfd |
nix / nix flake update / nix search nixpkgs |
nxsh |
nix-shell -p |
nvrun |
PRIME render-offload prefix (run a command on the dGPU) |
stbldff-on / stbldff-off |
Start / stop the Fooocus container |
wifi / wifilist |
nmtui / nmcli device wifi list |
qii |
qs -c ii (launch the Quickshell ii config) |
shutdown / bootbios |
systemctl poweroff / systemctl reboot --firmware |
Environment¶
set -gx EDITOR micro
set -gx BROWSER brave
set -gx PATH $HOME/.bin $HOME/.local/bin … $PATH
set -gx SOPS_AGE_KEY_FILE $HOME/.config/sops/age/keys.txt
# GEMINI_API_KEY / GITHUB_TOKEN sourced from /run/secrets when readable
Other programs
shell.nix also configures git (SSH commit signing, LFS), starship, direnv + nix-direnv, the
micro editor (nil LSP, nixpkgs-fmt on save), and the ssh-agent service.