Hi,
I discovered NixOS a few days ago, so sorry about perhaps the newbee question.
I am trying to create a “custom” ISO with the calamares installer. The goal is to allow a graphical installation of NixOS.
I followed the tutorial here : https://nixos.wiki/wiki/Creating_a_NixOS_live_CD. I created the flak.nix file :
{
description = "Minimal NixOS installation media";
inputs.nixos.url = "nixpkgs/23.11-beta";
outputs = { self, nixos }: {
nixosConfigurations = {
exampleIso = nixos.lib.nixosSystem {
system = "x86_64-linux";
modules = [
"${nixos}/nixos/modules/installer/cd-dvd/installation-cd-graphical-calamares-gnome.nix"
({ pkgs, ... }: {
environment.systemPackages = [ pkgs.neovim ];
})
];
};
};
};
}
From the turorial I just replaced the installation-cd-graphical-calamares-gnome.nix
part.
I generated the ISO file with the following command (same as tutorial):
nix build .#nixosConfigurations.exampleIso.config.system.build.isoImage
The launched the ISO with
qemu-system-x86_64 -enable-kvm -smp 8 -m 4096 -cdrom result/iso/nixos-23.11.20231121.dc7b3fe-x86_64-linux.iso
It ends up to a kernel panic like this :
What have I made wrong?
Thanks for the help