at v206 1.2 kB view raw
1{ config, lib, pkgs, ... }: 2 3let 4 extlinux-conf-builder = 5 import ../../system/boot/loader/generic-extlinux-compatible/extlinux-conf-builder.nix { 6 inherit pkgs; 7 }; 8in 9{ 10 imports = [ 11 ../../profiles/minimal.nix 12 ../../profiles/installation-device.nix 13 ./sd-image.nix 14 ]; 15 16 assertions = lib.singleton { 17 assertion = pkgs.stdenv.system == "armv7l-linux"; 18 message = "sd-image-armv7l-multiplatform.nix can be only built natively on ARMv7; " + 19 "it cannot be cross compiled"; 20 }; 21 22 boot.loader.grub.enable = false; 23 boot.loader.generic-extlinux-compatible.enable = true; 24 25 # FIXME: change this to linuxPackages_latest once v4.2 is out 26 boot.kernelPackages = pkgs.linuxPackages_testing; 27 boot.kernelParams = ["console=ttyS0,115200n8" "console=ttyAMA0,115200n8" "console=tty0"]; 28 29 # FIXME: fix manual evaluation on ARM 30 services.nixosManual.enable = lib.mkOverride 0 false; 31 32 # FIXME: this probably should be in installation-device.nix 33 users.extraUsers.root.initialHashedPassword = ""; 34 35 sdImage = { 36 populateBootCommands = '' 37 ${extlinux-conf-builder} -t 3 -c ${config.system.build.toplevel} -d ./boot 38 ''; 39 }; 40}