add serial and remove tpm support from homelab
This commit is contained in:
parent
9dca1be104
commit
0bd3d5a165
2 changed files with 11 additions and 1 deletions
|
|
@ -2,8 +2,8 @@
|
||||||
imports = [
|
imports = [
|
||||||
./core/firmware.nix
|
./core/firmware.nix
|
||||||
./core/igpu.nix
|
./core/igpu.nix
|
||||||
./core/tpm.nix
|
|
||||||
./misc/disks.nix
|
./misc/disks.nix
|
||||||
|
./misc/serial.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "virtio_net" "virtio_pci" "virtio_mmio" "virtio_blk" "virtio_scsi" "virtio_console" ];
|
boot.initrd.availableKernelModules = [ "virtio_net" "virtio_pci" "virtio_mmio" "virtio_blk" "virtio_scsi" "virtio_console" ];
|
||||||
|
|
|
||||||
10
modules/hardware/misc/serial.nix
Normal file
10
modules/hardware/misc/serial.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{ ... }: let
|
||||||
|
serial = "0";
|
||||||
|
in {
|
||||||
|
boot.kernelParams = [ "console=ttyS${serial},115200" ];
|
||||||
|
systemd.services."serial-getty@ttyS${serial}" = {
|
||||||
|
enable = true;
|
||||||
|
wantedBy = [ "getty.target" ];
|
||||||
|
serviceConfig.Restart = "always";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue