NxNORTH tty res fix
This commit is contained in:
@@ -9,8 +9,10 @@
|
|||||||
device-boot = if hyper.host == "NxNORTH" then {
|
device-boot = if hyper.host == "NxNORTH" then {
|
||||||
kernelPackages = pkgs.linuxPackages_zen;
|
kernelPackages = pkgs.linuxPackages_zen;
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
"fbcon=margin:1"
|
# "fbcon=margin:1"
|
||||||
"fbcon=nodefer"
|
"fbcon=nodefer"
|
||||||
|
"video=DP-4:2560x1440@60"
|
||||||
|
# "video=HDMI-A-3:d"
|
||||||
];
|
];
|
||||||
lanzaboote = {
|
lanzaboote = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -66,5 +68,23 @@ in {
|
|||||||
config = {
|
config = {
|
||||||
environment.systemPackages = with pkgs; lib.mkIf ( host == "NxNORTH" ) [ sbctl ];
|
environment.systemPackages = with pkgs; lib.mkIf ( host == "NxNORTH" ) [ sbctl ];
|
||||||
boot = { tmp.useTmpfs = false; } // device-boot;
|
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";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user