mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-05 15:33:29 +01:00
pine64/rockpro64: HDMI output and Network in initrd
This commit is contained in:
1 parent
ae546d018a
commit
b48cc4dab0
3 files changed
+32
No files matched your search
@@ -0,0 +1,17 @@
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
options.hardware.rockpro64.console = lib.mkOption {
|
||||
default = "hdmi";
|
||||
description = "Default console to use at boot.";
|
||||
type = lib.types.enum [
|
||||
"hdmi"
|
||||
"serial"
|
||||
];
|
||||
};
|
||||
config = lib.mkIf (config.hardware.rockpro64.console == "hdmi") {
|
||||
boot.kernelParams = [
|
||||
"console=ttyS0"
|
||||
"console=tty0"
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user