Utility scripts located in the scripts/ directory.
| Script | Purpose |
|---|---|
anywhere.sh |
Deploy NixOS using nixos-anywhere |
build-sign-send.sh |
Build, sign, and push to binary cache |
fix-bluetooth.sh |
Reset Bluetooth adapter |
connect-trackpad.sh |
Connect Bluetooth trackpad |
Secret management tools are available via nix develop .#secrets:
| Tool | Purpose |
|---|---|
provision-secrets |
Generate all secrets for a new machine |
ragenix |
Encrypt/decrypt individual secrets |
See secrets.md for detailed usage.
Wrapper for nixos-anywhere to deploy NixOS to remote machines.
./scripts/anywhere.sh <machine> <target-ip>Build a NixOS configuration, sign it, and push to a binary cache.
./scripts/build-sign-send.sh <machine>Reset the Bluetooth adapter when it stops working.
./scripts/fix-bluetooth.shThis runs:
sudo hciconfig hci0 down
sudo rmmod btusb
sudo modprobe btusbHelper to connect a Bluetooth trackpad. Calls fix-bluetooth.sh first.
./scripts/connect-trackpad.sh- Create script in
scripts/directory - Make executable:
chmod +x scripts/myscript.sh - Add shebang:
#!/usr/bin/env bash - Consider adding to this documentation