Rework confs a bit

This commit is contained in:
Samuel Dionne-Riel 2020-07-29 00:03:18 -04:00
parent f0c875d646
commit 5f70ed7f2a
3 changed files with 23 additions and 19 deletions

View File

@ -1,5 +1,6 @@
{
imports = [
./pinebook_pro.nix
./pinebook_pro-installer.nix
];
}

View File

@ -14,25 +14,6 @@ in
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
boot.consoleLogLevel = lib.mkDefault 7;
boot.kernelParams = [
"cma=32M"
#"console=ttyS0,115200n8" "console=ttyAMA0,115200n8" "console=tty0"
"console=ttyS2,1500000n8"
"earlycon=uart8250,mmio32,0xff1a0000" "earlyprintk"
# The last console parameter will be where the boot process will print
# its messages. Comment or move abot ttyS2 for better serial debugging.
"console=tty0"
];
services.mingetty.serialSpeed = [ 1500000 115200 57600 38400 9600 ];
boot.initrd.availableKernelModules = [
];
sdImage = {
populateRootCommands = ''
mkdir -p ./files/boot

View File

@ -0,0 +1,22 @@
{ config, lib, pkgs, ... }:
# Things that are too opinionated for defaults.
{
boot.kernelParams = [
"cma=32M"
"console=ttyS2,1500000n8"
"earlycon=uart8250,mmio32,0xff1a0000" "earlyprintk"
# The last console parameter will be where the boot process will print
# its messages. Comment or move above ttyS2 for better serial debugging.
"console=tty0"
];
services.mingetty.serialSpeed = [ 1500000 115200 57600 38400 9600 ];
boot.initrd.availableKernelModules = [
];
boot.consoleLogLevel = lib.mkDefault 7;
}