| System config files | `etc/**`, mirrored into `/etc` | `bootstrap.sh` |
| Self-updating tools from upstream installers (mise, herdr, tuicr) into `~/.local/bin` | `bootstrap.sh` | `bootstrap.sh tools` (kept up to date with update commands) |
## Fresh machine
```sh
sudo apt install -y git curl
git clone <this repo> ~/nixos
~/nixos/ubuntu/bootstrap.sh
sudo tailscale up
# log out and back in
```
After that:
-`homesw`: Home Manager only.
-`syssw`: everything (same as running `bootstrap.sh`).
- [ ]**YubiKey**: port `modules/nixos/yubikey` and `home-modules/sops.nix`. ykman and pcscd from apt, the udev rule plus yubikey-up/down scripts in `etc/`, the sops age key from cold storage, and the `id_yubikey` identity files in the ssh config.
- [ ]**system-manager**: explore [numtide/system-manager](https://github.com/numtide/system-manager) to move `etc/` and the systemd service setup into Nix.