I3 and i3lock freeze after being idle for a while

Every day after work I lock my system and leave it on. Coming back, consistently for the past 2 weeks or so, the system is unresponsive (I can however SSH into it). No keyboard inputs register, kill i3lock doesn’t do anything and running sudo nix-channel --update hasn’t solved it either.

More specifically, I am using i3lock-fancy-rapid if that matters. Weird I’ve never had any issues with it like this on other distros.

Maybe its an amdgpu thing (check the log below, I don’t really understand it).

Any ideas?
In dmesg I get the following logs:
https://clbin.com/kbxvG

If it is amdgpu or compositor related, here is the only references to that in my configuration.nix

services.xserver.deviceSection = ''Option "TearFree" "true"'';
  services.picom = {
     enable = false;
     vSync = true;
  };
 services.xserver = {
    enable = true;
    displayManager.gdm.enable = true;
    windowManager.i3.enable = true;
    desktopManager.runXdgAutostartIfNone = true;
    xkb.layout = "us";
    #xkb.variant = "dvorak";
    #xkb.options = "grp:win_space_toggle";
    videoDrivers = [ "amdgpu" ];
    #libinput.enable = true;
    #libinput.touchpad.naturalScrolling = true;
  };
  system.stateVersion = "23.11"; # Did you read the comment?

I have this package in my packages list:

xorg.xf86videoamdgpu