@ -31,6 +31,8 @@
# insecure configurations? (63xx without microcode)
microcode-blob = null ;
console-device = " t t y S 0 " ; # the DB9 connector on the rear panel
# This contains the default values written into the
# battery-backed nvram when you boot with the recovery jumper
# installed (which is something you should do the first time you
@ -41,15 +43,17 @@
# TODO: use a NixOS-style structuredConfig for this.
cmos-default = null ;
console-device = " t t y S 0 " ; # the DB9 connector on the rear panel
#console-device = "ttyS1"; # the IDC header on the motherboard
coreboot = final . lib . makeOverridable ( prev . coreboot . override {
iasl = final . iasl_20180531 ;
payload = " ${ final . kernel } / b z I m a g e " ;
fmap = ./custom.fmap ;
config = ./coreboot.config ;
coreboot-toolchain = with final . coreboot-toolchain ; [ x64 i386 ] ;
uart-for-console =
if final . console-device == " t t y S 0 " then 0 # the DB9 connector on the rear panel
else if final . console-device == " t t y S 1 " then 1 # the IDC header on the motherboard
else if final . console-device == null then null
else throw " k g p e c u r r e n t l y s u p p o r t s o n l y ` n u l l ` a n d ` t t y S { 0 , 1 } ` f o r ` c o n s o l e - d e v i c e ` " ;
} ) . overrideAttrs ( a : {
postConfigure = if final . microcode-blob != null then ''
echo CONFIG_CPU_MICROCODE_MULTIPLE_FILES = y > > . config