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
|
│ │ ├── configuration.nix
|
||||||
│ │ ├── disko-config.nix
|
│ │ ├── disko-config.nix
|
||||||
│ │ ├── hardware-configuration.nix
|
│ │ ├── hardware-configuration.nix
|
||||||
│ │ └── iso.nix
|
|
||||||
│ ├── armaros/ # Server #2
|
│ ├── armaros/ # Server #2
|
||||||
│ │ └── ...
|
│ │ └── ...
|
||||||
│ ├── buildbox/ # CI / Build
|
│ ├── buildbox/ # CI / Build
|
||||||
@@ -39,8 +38,6 @@ Each host gets an auto-generated `<hostname>-iso` rescue/installer ISO (except `
|
|||||||
│ │ └── configuration.nix
|
│ │ └── configuration.nix
|
||||||
│ ├── eva-03/ # Linux desktop with ComfyUI
|
│ ├── eva-03/ # Linux desktop with ComfyUI
|
||||||
│ │ └── ...
|
│ │ └── ...
|
||||||
│ └── iso/
|
|
||||||
│ └── default.nix # Shared rescue ISO module
|
|
||||||
├── home-manager/
|
├── home-manager/
|
||||||
│ ├── home.nix # Home Manager config for `rogueking`
|
│ ├── home.nix # Home Manager config for `rogueking`
|
||||||
│ ├── commands/ # CLI tool modules
|
│ ├── commands/ # CLI tool modules
|
||||||
@@ -64,30 +61,6 @@ Each host gets an auto-generated `<hostname>-iso` rescue/installer ISO (except `
|
|||||||
└── pfp/ # Profile pictures
|
└── 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
|
## Flake Inputs
|
||||||
|
|
||||||
| Input | Source |
|
| Input | Source |
|
||||||
|
|||||||
@@ -12,6 +12,8 @@
|
|||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
# Declarative disk layout (consumed by disko + nixos-anywhere).
|
||||||
|
./disko-config.nix
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user