Nvidia 390 driver not working

I didn’t try offload or reverse sync because I saw from the nixos wiki that those were not supported for my driver, so I only focused on sync.

It is a freeze, as I mentioned above “I can’t switch to TTY”, doing Ctrl+Alt+F2 or whatever other FX with X between 1 and 6 does nothing. I can only press the power button to shutdown my computer. Also for some reason switching my backlight on and off works, probably because this is handled by the BIOS.

Forgot to say that services.xserver.videoDrivers = [ "nvidia" ], I’ve edited my post too to include it. I saw by reading the nvidia module in nixpkgs that you must have “nvidia” in your videoDrivers for the module to do anything, and it was also mentioned on the wiki.

I’m using lightdm as display manager, allthough it’s a bit weird I must say, because I’ve never explicitly enabled it, it’s just that I set some parameters for displayManager and by default I get that.

Let me show you:

          services = {
                  xserver = {
                          enable = true;
                          layout = "us";
                          xkbVariant = "";
                          libinput.enable = true;
                          displayManager = {
                                  defaultSession = "none+dwm";
                                  sessionCommands = ''
                                          <some shell commands>
                                  '';
                          };
                          windowManager.dwm.enable = true;
                  };

Except for setting elsewhere services.xserver.videoDrivers I don’t touch services.xserver elsewhere.