Add fresh install script for ISO installer

- Add installer/fresh-install.sh for installing from live ISO
- Handles disk partitioning, LUKS encryption, filesystem setup
- Generates minimal NixOS config for first boot
- Enable flakes in ISO environment
- Pass installer script content to ISO build via specialArgs

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-15 04:24:20 -05:00
parent 5a52b3c159
commit d6491d8c38
4 changed files with 465 additions and 15 deletions

View File

@@ -105,7 +105,10 @@
# ISO installer configuration
installer = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs;};
specialArgs = {
inherit inputs;
installerScriptContent = builtins.readFile ./installer/fresh-install.sh;
};
modules = [
./iso/default.nix
];