Hi All,
For starters, we’re completely new to NixOS and are attempting to bootstrap ourselves, but running into issues when attempting to install a custom image from a USB.
Using the instructions outlined @ Building bootable ISO image, we created a ‘myimage.nix’ file containing:
{ pkgs, modulesPath, lib, ... }: {
imports = [
"${modulesPath}/installer/cd-dvd/installation-cd-graphical-gnome.nix"
];
# use the latest Linux kernel
boot.kernelPackages = pkgs.linuxPackages_latest;
# Needed for https://github.com/NixOS/nixpkgs/issues/58959
boot.supportedFilesystems = lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" ];
}
We then executed the following commands:
NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/74e2faf5965a12e8fa5cff799b1b19c6cd26b0e3.tar.gz
nix-shell -p nixos-generators --run "nixos-generate --format iso --configuration ./myimage.nix -o result"
Resulting in an ISO, which we then burned to a USB stick. So far, so good …
We then booted from this USB stick, and after a few seconds, our custom NixOS image booted from the stick – and we smiled with great satisfaction!
We then began looking for the ‘graphical installer’ to install the image on the computer – but came up short.
Clearly, we are missing something silly here.
Can anyone explain how we can build a custom image with custom packages, filesystem, etc. that we can then simply burn to a USB stick, boot and install onto your average PC?
Apologies in advance for the newbie question.
Thanks.