and it appears to successfully build without any issue (yesterday and today). However, configurations 110 from yesterday and 111 from today boot up to the same spot and never progress past it.
Here’s my latest flake configuration for reference:
Did you check the log (via journalctl, pass -D /{mount-point}/var/log/journal if you use a live usb to read the log of your main system.)? I don’t use gdm but my computer also “hangs” after updating nixpkgs from 126f49a01de5b7e35a43fd43f891ecf6d3a51459 to 5a05160f7671434e1c833b1b01284b876e04eca4. From the log I learned that systemd udev service hangs, so the keyboard doesn’t work. I could still ssh to it, though.
For anyone else having this issue, this is what I did:
Used @uep’s solution to temporarily set mesa to 22
Made a tempfix.nix file with links to this discourse and @peterhoeg’s link to the PR, so I can easily keep track of the status. Using his suggestion #2.
I will remove the tempfix.nix and link from my flake per @Atemu’s comment once it hits unstable.
You can see my flake using the link earlier in this topic.
Also, another temporary fix would be to do something like this:
# list generations
sudo nix-env --list-generations --profile /nix/var/nix/profiles/system
109 2023-03-26 20:19:33
110 2023-03-28 21:02:51
111 2023-03-29 13:11:47 (current)
# switch to a prior working generation
sudo nix-env --profile /nix/var/nix/profiles/system --switch-generation 109
switching profile from version 111 to 109
I tried using pkgs.mesa instead of pkgs.mesa_22 in my tempfixes.nix file:
{ config, pkgs, ... }:
{
# Temporarily Fixes the following.
# https://discourse.nixos.org/t/laptop-hangs-at-started-session-c1-of-user-gdm/26834
# https://github.com/NixOS/nixpkgs/pull/223530
# TODO Remove once the PR hits unstable
hardware.opengl.mesaPackage = pkgs.mesa;
}
but receive this error when I try to build:
error: The option `hardware.opengl.mesaPackage' does not exist. Definition values:
- In `/nix/store/1v7ysf98ig51sa6512lpai6alv5bfi8f-source/hosts/local/weda/tempfixes.nix': <derivation mesa-22.3.7>
Regardless, the issue seems to have been fixed as I removed my temporary fix line of code and my system boots fine now. Thank you for the suggestion though!
i have figured out that if i apply this nvidia configuration then i am getting this issue : Nvidia - NixOS Wiki.
if i remove it. it works fine.
but i need nvidia graphics applied.
also another thing is this is only coming on my laptop screen.
have found out that my laptop is connected with my external monitor i can see the ui and i can login it easily but the laptop screen is stuck on the above-mentioned message.
mesaPackage was an option for a short while on unstable but it was quickly removed again because it didn’t work out like we thought it would.
Your issue sounds like one of the countless issues with iGPU + Nvidia dGPU in laptops and I don’t think we as the Linux community can really do anything about that since it’s all Nvidia proprietary crap. You’d have to ask Nvidia to fix it and I doubt they care.