Skip to content

Latest commit

 

History

History
71 lines (48 loc) · 1.51 KB

File metadata and controls

71 lines (48 loc) · 1.51 KB

Helper Scripts

Utility scripts located in the scripts/ directory.

Scripts Overview

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

Secrets Shell Tools

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.

Script Details

anywhere.sh

Wrapper for nixos-anywhere to deploy NixOS to remote machines.

./scripts/anywhere.sh <machine> <target-ip>

build-sign-send.sh

Build a NixOS configuration, sign it, and push to a binary cache.

./scripts/build-sign-send.sh <machine>

fix-bluetooth.sh

Reset the Bluetooth adapter when it stops working.

./scripts/fix-bluetooth.sh

This runs:

sudo hciconfig hci0 down
sudo rmmod btusb
sudo modprobe btusb

connect-trackpad.sh

Helper to connect a Bluetooth trackpad. Calls fix-bluetooth.sh first.

./scripts/connect-trackpad.sh

Adding New Scripts

  1. Create script in scripts/ directory
  2. Make executable: chmod +x scripts/myscript.sh
  3. Add shebang: #!/usr/bin/env bash
  4. Consider adding to this documentation