From 809ce39ad371b8394130cc5e49d6208c50543acd Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Wed, 25 Feb 2026 12:59:43 +0100 Subject: [PATCH] NxNORTH tty res fix --- system-modules/boot.nix | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/system-modules/boot.nix b/system-modules/boot.nix index 985d9f2..719de76 100644 --- a/system-modules/boot.nix +++ b/system-modules/boot.nix @@ -9,8 +9,10 @@ device-boot = if hyper.host == "NxNORTH" then { kernelPackages = pkgs.linuxPackages_zen; kernelParams = [ - "fbcon=margin:1" + # "fbcon=margin:1" "fbcon=nodefer" + "video=DP-4:2560x1440@60" + # "video=HDMI-A-3:d" ]; lanzaboote = { enable = true; @@ -66,5 +68,23 @@ in { config = { environment.systemPackages = with pkgs; lib.mkIf ( host == "NxNORTH" ) [ sbctl ]; boot = { tmp.useTmpfs = false; } // device-boot; + # thx fxzzi + # sh*tty nvidia makes the tty on my 1440p monitor 1080p + # so just resize it to 1440p + systemd.services.fbset = lib.mkIf (hyper.host == "NxNORTH") { + enable = true; + wantedBy = ["multi-user.target"]; + unitConfig = { + Description = "Set framebuffer resolution"; + Before = "display-manager.service"; + }; + serviceConfig = { + Type = "oneshot"; + ExecStart = "${lib.getExe pkgs.fbset} -xres 2560 -yres 1440 -match --all"; + RemainAfterExit = "yes"; + StandardOutput = "journal"; + StandardError = "journal"; + }; + }; }; }