···11-# Nix-based PDS scripts
22-33-Run a local ATProto PDS using the `bluesky-pds` package from nixpkgs (no Docker required).
44-55-## Prerequisites
66-77-```bash
88-nix develop # enters dev shell with `pds` on PATH
99-```
1010-1111-## Quick start
1212-1313-```bash
1414-./scripts/nixtests/start.sh # generates secrets on first run, starts PDS
1515-./scripts/nixtests/create-account.sh # creates test.localhost account
1616-./scripts/nixtests/login.sh # prints access token
1717-```
1818-1919-## Scripts
2020-2121-| Script | Description |
2222-|--------|-------------|
2323-| `setup.sh` | Generate secrets and write `pds.env` (called automatically by `start.sh`) |
2424-| `start.sh` | Start the PDS in the background with health checking |
2525-| `stop.sh` | Gracefully stop the PDS |
2626-| `reset.sh` | Stop and wipe all data for a fresh start |
2727-| `create-account.sh` | Create a test account (default: `test.localhost`) |
2828-| `login.sh` | Log in and print an access token |
2929-3030-## Notes
3131-3232-- Data is stored in `scripts/nixtests/pds-data/` (gitignored)
3333-- PDS listens on port 3000 by default
3434-- Logs are written to `pds-data/pds.log`