Nixos laptop screen flicker

I am running 24.05 which i configured on a virtual machine with a flake but when i moved to my laptop
(msi katana, RTX 3060) the screen flickers to black seemingly at random a few times every 1-2 seconds. I tried some things from similar post and the wiki but nothing worked.

From what I see its from xserver as in the grub menu and when i drop to a text interface it does not happen

Thank you for your help

nixos config: GitHub - GigaSpas/nixos_config
xserver settings are in configuration.nix line 50 and up

sudo lshw -c display output:

  *-display                 
       description: i915drmfb
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: /dev/fb0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom fb
       configuration: depth=32 driver=nvidia latency=0 mode=1920x1080 visual=truecolor xres=1920 yres=1080
       resources: iomemory:600-5ff iomemory:620-61f irq:169 memory:81000000-81ffffff memory:6000000000-61ffffffff memory:6200000000-6201ffffff ioport:4000(size=128) memory:82000000-8207ffff
  *-display
       product: i915drmfb
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 01
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm bus_master cap_list rom fb
       configuration: depth=32 driver=i915 latency=0 resolution=1920,1080
       resources: iomemory:620-61f iomemory:400-3ff irq:167 memory:6202000000-6202ffffff memory:4000000000-400fffffff ioport:5000(size=64) memory:c0000-dffff memory:4010000000-4016ffffff memory:4020000000-40ffffffff

Update: I think its a qtile issue as I just tried it with xfce and there is no flicker if anyone has any idea what is happening please tell me