From c99de4cad8695d2f7f745185b278566fcf97c6c7 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Sat, 23 Mar 2024 22:11:37 +0100 Subject: [PATCH] Set monitor resolution and refresh rate --- hosts/seb-desktop/hardware.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/hosts/seb-desktop/hardware.nix b/hosts/seb-desktop/hardware.nix index dc99778..4ffe07c 100644 --- a/hosts/seb-desktop/hardware.nix +++ b/hosts/seb-desktop/hardware.nix @@ -19,4 +19,25 @@ hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; services.xserver.videoDrivers = ["nvidia"]; + + services.autorandr = { + enable = true; + profiles = { + "primary" = { + fingerprint = { + "DP-2" = "00ffffffffffff0005e30227262602001a1e0104a53c22783bdad5ad5048a625125054bfef00d1c081803168317c4568457c6168617c565e00a0a0a029503020350055502100001e40e7006aa0a067500820980455502100001a000000fc0051323747325747340a20202020000000fd003090e6e63c010a20202020202001e702031ff14c0103051404131f120211903f230907078301000065030c0010006fc200a0a0a055503020350055502100001e5aa000a0a0a046503020350055502100001e023a801871382d40582c450055502100001eab22a0a050841a303020360055502100001af03c00d051a0355060883a0055502100001c00000000000080"; + }; + config = { + "DP-2" = { + enable = true; + primary = true; + position = "0x0"; + mode = "2560x1440"; + rate = "144"; + }; + }; + }; + }; + }; + services.xserver.displayManager.sessionCommands = "autorandr -c"; }