No description
- Shell 100%
| bootstrap.sh | ||
| README.md | ||
nixos-bootstrap
Public bootstrap entrypoint for the private Vixys/nixos NixOS configuration repo.
Usage:
curl -fsSL https://git.sebmarichal.fr/imp/nixos-bootstrap/raw/branch/main/bootstrap.sh | bash
The script clones git@github.com:Vixys/nixos.git into /home/imp/Dev/nixos, keeps /etc/nixos as a real directory, and symlinks /etc/nixos/configuration.nix to the repo checkout.
If /etc/nixos/configuration.nix already exists as a regular file, the script renames it to a timestamped backup like /etc/nixos/configuration.nix.pre-bootstrap-YYYYMMDD-HHMMSS before linking.
If GitHub SSH access is not configured yet, the script generates an ed25519 key if needed, prints the public key, and asks you to add it to GitHub before retrying the clone.