From 79013316a600cec7ef89ba0c077f2bec16dbee0d Mon Sep 17 00:00:00 2001 From: William Carroll Date: Thu, 20 Feb 2020 19:51:51 +0000 Subject: Support installer.nix The command... nix-build -A config.system.build.isoImage -I nixos-config=installer.nix nixos ...creates an .iso file in the ./result directory. You can then copy this onto a USB and use it a custom installer... cp ./result/iso/*-linux.iso /dev/sda I needed an installer that used a version of the Linux kernel higher than the one distributed on NixOS's website: 4.19.? -> 5.4.20+. My Acer laptop needed a version of the kernel that supported its network controller: Intel 3168NGW. TODO(wpcarro): Pin the nixpkgs git commit SHA inside of installer.nix. --- nixos/installer.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 nixos/installer.nix (limited to 'nixos') diff --git a/nixos/installer.nix b/nixos/installer.nix new file mode 100644 index 000000000000..f0c1efe21ef5 --- /dev/null +++ b/nixos/installer.nix @@ -0,0 +1,11 @@ +{ config, pkgs, ... }: + +{ + imports = [ + + ]; + config = { + networking.wireless.enable = true; + networking.wireless.networks."GoogleGuest" = {}; + }; +} -- cgit 1.4.1