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
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