docs: update stale dotfiles/nixos flake paths 📝
Stage 4f cleanup. The flake moved from ~/dotfiles/nixos/ to ~/dotfiles/
in 88c5139; docs and install scripts hadn't been refreshed. Point all
rebuild / flake references at the new root:
- AGENTS.md, README.md, server-quickstart.md, docs/server-installer-usb.md,
docs/sunken-ship-wifi.md, nixos/readme.md — rebuild command paths.
- scripts/nixos-server-install.sh — auto-detect now looks for flake.nix
at repo root (was nixos/flake.nix).
- scripts/post-install-provision.sh — first-rebuild hint path.
`nixos/hosts/<host>-hardware.nix` and friends stay where they are —
host-specific NixOS modules still live under nixos/; only the flake
entry-points + sops/ + vars/ + lib/ + modules/ + flake-modules/ moved.
nixos/readme.md rewritten to reflect the split (flake at root, per-host
modules under nixos/).
This commit is contained in:
parent
754cb0d274
commit
b0c8664f5c
8 changed files with 36 additions and 29 deletions
|
|
@ -16,12 +16,12 @@ set -euo pipefail
|
|||
|
||||
FLAKE_REF="${FLAKE_REF:-}"
|
||||
if [[ -z "$FLAKE_REF" ]]; then
|
||||
if [[ -d "$(dirname "$0")/../nixos" ]] && [[ -f "$(dirname "$0")/../nixos/flake.nix" ]]; then
|
||||
if [[ -f "$(dirname "$0")/../flake.nix" ]]; then
|
||||
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
FLAKE_REF="path:${REPO_ROOT}/nixos"
|
||||
FLAKE_REF="path:${REPO_ROOT}"
|
||||
else
|
||||
echo "FLAKE_REF not set and not running from dotfiles repo. Example:"
|
||||
echo " export FLAKE_REF=github:USER/REPO # or path:/path/to/dotfiles/nixos"
|
||||
echo " export FLAKE_REF=github:USER/REPO # or path:/path/to/dotfiles"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
|
@ -197,5 +197,5 @@ echo ""
|
|||
echo "=== Done! ==="
|
||||
echo "Remove the USB and reboot. After unlocking LUKS:"
|
||||
echo " 1. SSH in: ssh danny@${hostname}"
|
||||
echo " 2. First rebuild: cd /etc/dotfiles/nixos && sudo nixos-rebuild switch --flake .#${hostname}"
|
||||
echo " 2. First rebuild: cd /etc/dotfiles && sudo nixos-rebuild switch --flake .#${hostname}"
|
||||
echo " 3. Commit ${hostname}-hardware.nix back to the repo"
|
||||
|
|
|
|||
|
|
@ -57,5 +57,5 @@ cryptsetup close crypted 2>/dev/null || true
|
|||
echo ""
|
||||
echo "=== Done! Remove USB and reboot. ==="
|
||||
echo "After unlocking LUKS, SSH in: ssh danny@${HOSTNAME}"
|
||||
echo "Then: cd /etc/dotfiles/nixos && sudo nixos-rebuild switch --flake .#${HOSTNAME}"
|
||||
echo "Then: cd /etc/dotfiles && sudo nixos-rebuild switch --flake .#${HOSTNAME}"
|
||||
echo "Commit ${HOSTNAME}-hardware.nix from the USB back to the repo."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue