This repository has been archived on 2024-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
nix-config-tn/images
renovate[bot] 75daf6aa89 feat(deps)!: Update nixpkgs to nixos-23.11 (#26)
| datasource | package                          | from        | to          |
| ---------- | -------------------------------- | ----------- | ----------- |
| git-refs   | https://github.com/NixOS/nixpkgs | nixos-22.11 | nixos-23.11 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-27 08:36:50 +11:00
..
rpi feat(deps)!: Update nixpkgs to nixos-23.11 (#26) 2024-03-27 08:36:50 +11:00
iso.nix chore: initial format 2024-03-18 20:26:02 +11:00
README.md feat: initial lint 2024-03-18 20:06:00 +11:00

ISO Image builds

A minimal NixOS install iso build.

Mainly useful for force-enabling sshd with my public key to allow headless deployments.

https://nixos.wiki/wiki/Creating_a_NixOS_live_CD

Building

cd iso
nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=iso.nix

Checking image contents

$ mkdir mnt
$ sudo mount -o loop result/iso/nixos-*.iso mnt
$ ls mnt
boot  EFI  isolinux  nix-store.squashfs  version.txt
$ umount mnt

Testing image in QEMU

$ nix-shell -p qemu
$ qemu-system-x86_64 -enable-kvm -m 256 -cdrom result/iso/nixos-*.iso