From 0bd3d5a165a5a342362db0bd31b98d36fd3d6023 Mon Sep 17 00:00:00 2001 From: Satria Date: Sun, 8 Mar 2026 22:26:52 +0700 Subject: [PATCH] add serial and remove tpm support from homelab --- modules/hardware/homelab.nix | 2 +- modules/hardware/misc/serial.nix | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 modules/hardware/misc/serial.nix diff --git a/modules/hardware/homelab.nix b/modules/hardware/homelab.nix index 1840222..08bfec3 100644 --- a/modules/hardware/homelab.nix +++ b/modules/hardware/homelab.nix @@ -2,8 +2,8 @@ imports = [ ./core/firmware.nix ./core/igpu.nix - ./core/tpm.nix ./misc/disks.nix + ./misc/serial.nix ]; boot.initrd.availableKernelModules = [ "virtio_net" "virtio_pci" "virtio_mmio" "virtio_blk" "virtio_scsi" "virtio_console" ]; diff --git a/modules/hardware/misc/serial.nix b/modules/hardware/misc/serial.nix new file mode 100644 index 0000000..b8dace3 --- /dev/null +++ b/modules/hardware/misc/serial.nix @@ -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"; + }; +} \ No newline at end of file