blade: fix serial console
This commit is contained in:
parent
bb1178e82c
commit
c682fc0422
1 changed files with 13 additions and 12 deletions
|
@ -29,7 +29,19 @@ in {
|
||||||
config = {
|
config = {
|
||||||
boot.initrd.availableKernelModules = [ "ahci" "ohci_pci" "ehci_pci" "pata_atiixp" "uhci_hcd" "be2iscsi" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
|
boot.initrd.availableKernelModules = [ "ahci" "ohci_pci" "ehci_pci" "pata_atiixp" "uhci_hcd" "be2iscsi" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
|
||||||
boot.kernelModules = [ "kvm-amd" "acpi_power_meter" "acpi_ipmi" "ipmi_si" ];
|
boot.kernelModules = [ "kvm-amd" "acpi_power_meter" "acpi_ipmi" "ipmi_si" ];
|
||||||
boot.kernelParams = [ "mitigations=off" ];
|
|
||||||
|
# Enable serial console.
|
||||||
|
boot.loader.grub.extraConfig = ''
|
||||||
|
serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
|
||||||
|
terminal_input console serial
|
||||||
|
terminal_output console serial
|
||||||
|
'';
|
||||||
|
boot.kernelParams = [
|
||||||
|
"console=tty1"
|
||||||
|
"console=ttyS0,115200" # <-- /dev/console
|
||||||
|
|
||||||
|
"mitigations=off"
|
||||||
|
];
|
||||||
|
|
||||||
fileSystems = let
|
fileSystems = let
|
||||||
zfs = device: {
|
zfs = device: {
|
||||||
|
@ -159,17 +171,6 @@ in {
|
||||||
ProcessSizeMax=0
|
ProcessSizeMax=0
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Enable serial console.
|
|
||||||
loader.grub.extraConfig = ''
|
|
||||||
serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
|
|
||||||
terminal_input console serial
|
|
||||||
terminal_output console serial
|
|
||||||
'';
|
|
||||||
boot.kernelParams = [
|
|
||||||
"console=tty1"
|
|
||||||
"console=ttyS0,115200" # <-- /dev/console
|
|
||||||
];
|
|
||||||
|
|
||||||
system.stateVersion = "21.05";
|
system.stateVersion = "21.05";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue