using nixos-anywhere
This commit is contained in:
@@ -26,7 +26,6 @@ Each host gets an auto-generated `<hostname>-iso` rescue/installer ISO (except `
|
||||
│ │ ├── configuration.nix
|
||||
│ │ ├── disko-config.nix
|
||||
│ │ ├── hardware-configuration.nix
|
||||
│ │ └── iso.nix
|
||||
│ ├── armaros/ # Server #2
|
||||
│ │ └── ...
|
||||
│ ├── buildbox/ # CI / Build
|
||||
@@ -39,8 +38,6 @@ Each host gets an auto-generated `<hostname>-iso` rescue/installer ISO (except `
|
||||
│ │ └── configuration.nix
|
||||
│ ├── eva-03/ # Linux desktop with ComfyUI
|
||||
│ │ └── ...
|
||||
│ └── iso/
|
||||
│ └── default.nix # Shared rescue ISO module
|
||||
├── home-manager/
|
||||
│ ├── home.nix # Home Manager config for `rogueking`
|
||||
│ ├── commands/ # CLI tool modules
|
||||
@@ -64,30 +61,6 @@ Each host gets an auto-generated `<hostname>-iso` rescue/installer ISO (except `
|
||||
└── pfp/ # Profile pictures
|
||||
```
|
||||
|
||||
## Rescue / Installer ISOs
|
||||
|
||||
Every Linux host (except macOS) has an auto-generated ISO configuration (`<hostname>-iso`) that provides:
|
||||
|
||||
- SSH access with the configured public key
|
||||
- The host's `disko-config.nix` copied to `/etc/disko-config.nix`
|
||||
- Common rescue tools (`git`, `neovim`, `wget`, `curl`, `parted`, `gptfdisk`, `efibootmgr`)
|
||||
|
||||
### Building an ISO
|
||||
|
||||
```bash
|
||||
nix build .#nixosConfigurations.acheron-iso.config.system.build.isoImage
|
||||
```
|
||||
|
||||
### Using a rescue ISO
|
||||
|
||||
```bash
|
||||
# Partition and format disks
|
||||
disko --mode disko /etc/disko-config.nix
|
||||
|
||||
# Install the system
|
||||
nixos-install --flake /etc/nixos#hostname
|
||||
```
|
||||
|
||||
## Flake Inputs
|
||||
|
||||
| Input | Source |
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
# Declarative disk layout (consumed by disko + nixos-anywhere).
|
||||
./disko-config.nix
|
||||
inputs.home-manager.nixosModules.default
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user