From 7e2a3488efd6708a29a284982401c35be8da6f8c Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sun, 10 Nov 2024 14:19:29 +0100 Subject: [PATCH] chore(kernel): add systemd logs by default Note: We should probably put all manner of debug options behind a single or a few nix options used across modules --- modules/generic.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/generic.nix b/modules/generic.nix index dd4f547..2214f00 100644 --- a/modules/generic.nix +++ b/modules/generic.nix @@ -10,8 +10,14 @@ enableContainers = false; initrd.systemd.enable = true; initrd.compressor = "zstd"; + + # FIXME: Add debug/devel option to switch default kernel params kernelParams = [ - "console=ttyS0" + # "quiet" + "console=tty1" + "console=ttyS0,38400" + "systemd.log_level=info" + "systemd.log_target=console" ]; loader.efi.canTouchEfiVariables = true; loader.grub.enable = false;