# https://nixos.wiki/wiki/Creating_a_NixOS_live_CD # Create with the command below. # nix build .#nixosConfigurations.iso.config.system.build.isoImage { description = "Custom Minimal NixOS installation media"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; outputs = { self, nixpkgs }: { nixosConfigurations = { iso = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ ( { pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix") ]; networking.networkmanager.enable = true; environment.systemPackages = with pkgs; [ neovim git nh ]; } ) ]; }; }; }; }