caa 10032026
these are the tools i currently use :3
__curPos.filewill give the full evaluated path of the nix file it is called in. See this issue for more information.- to get home-manager logs on darwin, use
darwin-rebuildinstead ofnh - on
alpha, run rebuilds vianix develop -c just rbfrom the repo root. if rosetta-builder flakes out with platform mismatch / remote builder issues, runjust rba second time — it often succeeds on retry.
- hypridle writes
idle/activestate to/run/user/<uid>/hypridle-stateon nemesis. - idle timeout is
60seconds. daily-midnight-poweroffruns at00:00local time daily.- at
00:00, if state is notidle, service exits immediately. - if state is
idle, service sends a desktop notification that shutdown will happen in 1 minute. - service waits 60 seconds, checks state again, and powers off immediately if still
idle. - service logs each step to journald (view with
journalctl -u daily-midnight-poweroff.service).
pkill .Hyprland-wrapp
# verify the active config file
Hyprland --verify-config -c ~/.config/hypr/hyprland.lua
# check runtime-reported config errors
hyprctl configerrorsIf bootctl status shows a stale Default Entry while /boot/loader/loader.conf has a newer default, the EFI variable LoaderEntryDefault is overriding loader.conf.
Inspect current default:
sudo bootctl status | rg "Current Entry|Default Entry"
sudo grep '^default ' /boot/loader/loader.confSet EFI default explicitly:
sudo bootctl set-default nixos-generation-<N>.confUnset EFI override (use loader.conf as source of truth):
# remove LoaderEntryDefault EFI variable
sudo bash -lc 'for v in /sys/firmware/efi/efivars/LoaderEntryDefault-*; do [ -e "$v" ] || continue; chattr -i "$v" 2>/dev/null || true; rm -f "$v" || true; done'Note: on this machine, unsetting from boot.loader.systemd-boot.extraInstallCommands did not persist (the variable reappeared by end of switch). The reliable approach here is to unset it after nh os switch completes (wired into Justfile rb).
- ornicar, for being my inspiration to start using Nix, open source, and being a full fledged software engineer
- NixOS & Flakes Book for teaching me how to use NixOS, flakes, and home-manager: the best damn tutorial on the internet I've seen yet
- NotAShelf for introducing me to the idea of monorepos and custom logic (read: over-engineering) for Nix flakes
- drupol/infra for introducing the dendritic pattern to me, and mightyiam for pioneering it.
- Cross-compiling to ARM64 in GitHub Actions