Can't setup monitors – xrandr: X Error of failed request: BadMatch (invalid parameter attributes)

I just installed NixOS on my T480 and I would like to configure my monitors but xrandr throws an error.

$ xrandr --output eDP-1 --mode 2560x1440 # native resolution works
$ xrandr --output eDP-1 --mode 1920x1440
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  7 (RRSetScreenSize)
  Serial number of failed request:  22
  Current serial number in output stream:  23
$ xrandr --output eDP-1 --scale 1x1
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  26 (RRSetCrtcTransform)
  Value in failed request:  0x20
  Serial number of failed request:  21
  Current serial number in output stream:  22

I’m running nixpkgs/nixos-23.11.

More debugging information:

$ xrandr -q
Screen 0: minimum 16 x 16, current 2560 x 1440, maximum 32767 x 32767
eDP-1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 310mm x 170mm
   2560x1440     59.96*+
   1920x1440     59.97  
   1600x1200     59.96  
   1440x1080     59.99  
   1400x1050     59.98  
   1280x1024     59.89  
   1280x960      59.94  
   1152x864      59.96  
   1024x768      59.92  
   800x600       59.86  
   640x480       59.38  
   320x240       59.52  
   1920x1200     59.96  
   1680x1050     59.95  
   1440x900      59.89  
   1280x800      59.81  
   1152x720      59.97  
   960x600       59.96  
   928x580       59.88  
   800x500       59.50  
   768x480       59.90  
   720x480       59.71  
   640x400       59.95  
   320x200       58.96  
   2048x1152     59.98  
   1920x1080     59.96  
   1600x900      59.95  
   1368x768      59.88  
   1280x720      59.86  
   1024x576      59.90  
   864x486       59.92  
   720x400       59.55  
   640x350       59.77  
$ journalctl -t xsession # xorg log
-- No entries --
$ sudo lshw -c display # I disabled the integrated nvidia gpu (so only the intel one is below) but this didn't fix the problem
  *-display                 
       product: i915drmfb
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 07
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm bus_master cap_list rom fb
       configuration: depth=32 driver=i915 latency=0 resolution=2560,1440
       resources: irq:129 memory:eb000000-ebffffff memory:80000000-8fffffff ioport:e000(size=64) memory:c0000-dffff

Thanks a lot for your help!

I found out I could just set up the monitors in the gnome settings… xrandr still doesn’t really work, so no --scale 1.5x1.5 for my hidpi display but it’s OK i just scaled the fonts.