Ldp
Run ldp $ARGUMENTS.
Run `ldp $ARGUMENTS`.
**Targets:**
- NixOS hosts: `nixos-desktop`, `nixos-t480`, `nixos-t400`, `nixos-vm`, `nixos-iso`
- Home-manager: `reed@nixos-desktop`, `reed@nixos-t480`, `reed@nixos-t400`, `reed@nixos-vm`
**Common flags:**
```sh
ldp --build <target> # build without switching
ldp --switch [hostname] # build and switch (defaults to $(hostname))
ldp --boot [hostname] # build and set boot entry
ldp --list-outputs # list all flake outputs
Important: New files must be git add-ed before running ldp — Nix flakes only see tracked files.
If $ARGUMENTS contains --, treat everything before -- as the ldp flags and everything after as additional instructions to execute after a successful build.
Error loop: If ldp produces evaluation or build errors, investigate the error, fix it, and rerun. Repeat until the build succeeds or you hit an error that genuinely requires user input. Do not exit the skill with a failing build.
After following any additional instructions (from --), always rerun the original ldp command to confirm the final build succeeds.
Locating the repo: ldp --switch/--boot bakes the repo path into the binary at build time by reading nixos-configurations/<hostname>/.flake-path. On a fresh clone where that file doesn't exist, ldp falls back to $(pwd) and must be run from the repo root.
```
Maintain Ldp?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[Ldp on getagentictools](https://getagentictools.com/loops/reedrw-ldp?ref=badge)