# 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; nix.settings.experimental-features = [ "nix-command" "flakes" ]; environment.systemPackages = with pkgs; [ neovim git nh ]; i18n.defaultLocale = "en_US.UTF-8"; console.useXkbConfig = true; services.xserver.xkb.layout = "us"; # Comment out this line if you want to use qwerty services.xserver.xkb.variant = "colemak"; } ) ]; }; }; }; }