feat: custom kexec installer for headless install on read-only-root (ZimaOS)

- add nixos-images input; nixosConfigurations.kexec bakes in the ssh login key
- build via config.system.build.kexecInstallerTarball
- deploy: ./deploy kexec <host> streams the installer to /tmp and kexecs
- works around ZimaOS RO root where nixos-anywhere ssh-copy-id fails

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
erik
2026-07-12 22:14:35 +02:00
co-authored by Claude Opus 4.8
parent 95e945fa6f
commit f581203b57
3 changed files with 102 additions and 4 deletions
Generated
+54
View File
@@ -20,6 +20,59 @@
"type": "github"
}
},
"nixos-images": {
"inputs": {
"nixos-stable": "nixos-stable",
"nixos-unstable": "nixos-unstable"
},
"locked": {
"lastModified": 1783593136,
"narHash": "sha256-zy5an02BdZ65OgVKdRkz2TpbdBrsW+uQD7AA2wLuiTM=",
"owner": "nix-community",
"repo": "nixos-images",
"rev": "803f28511c7d5f39f2537c342122fd94b8e1d519",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixos-images",
"type": "github"
}
},
"nixos-stable": {
"locked": {
"lastModified": 1783389287,
"narHash": "sha256-0xIy4dVLqq47rA+mRy0hXDfjhQd4E5PoIns/RmB7nR4=",
"ref": "nixos-26.05",
"rev": "0ad6f47ea4fe188f4bc8f0380f93ae8523337c6c",
"shallow": true,
"type": "git",
"url": "https://github.com/NixOS/nixpkgs"
},
"original": {
"ref": "nixos-26.05",
"shallow": true,
"type": "git",
"url": "https://github.com/NixOS/nixpkgs"
}
},
"nixos-unstable": {
"locked": {
"lastModified": 1782175435,
"narHash": "sha256-EMzXKmnOtBQ2MnvpiNOm7E+kOMvdPrIKaeg52Tip2Uk=",
"ref": "nixpkgs-unstable",
"rev": "89570f24e97e614aa34aa9ab1c927b6578a43775",
"shallow": true,
"type": "git",
"url": "https://github.com/NixOS/nixpkgs"
},
"original": {
"ref": "nixpkgs-unstable",
"shallow": true,
"type": "git",
"url": "https://github.com/NixOS/nixpkgs"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1783703440,
@@ -39,6 +92,7 @@
"root": {
"inputs": {
"disko": "disko",
"nixos-images": "nixos-images",
"nixpkgs": "nixpkgs",
"sops-nix": "sops-nix"
}