Hi, I have setup NixOS with sway and now trying to setup greetd and ReGreet as a login manager for sway. But when greetd launches ReGreet using sway and the minimal configuration that NixOS provides, it displays a white screen with a cursor and invisible boxes.
Looking at the logs, ReGreet failed to initialize GTK:
2025-06-10T12:58:46.661890742-04:00 ERROR regreet: panicked at /build/regreet-0.2.0-vendor/relm4-0.9.1/src/lib.rs:117:17:
called `Result::unwrap()` on an `Err` value: BoolError { message: "Failed to initialize GTK", filename: "/build/regreet-0.2.0-vendor/gtk4-0.9.5/src/rt.rs", function: "gtk4::rt::init", line: 159 }
However when using gtkgreet with sway, it works just fine completely.
I tried to use solutions from this post but it does not work, so does anybody else encountering this problem
Yes, I see the same thing on the nixos-25.05 branch since about a week and a half ago. I also tried nixos-unstable and still seeing the same thing. I switched to gtkgreet in the meantime, but here’s my configuration with regreet in case anything jumps out to anyone: configuration.nix · GitHub (fwiw, this is on a Thinkpad T540p, with an Intel Haswell CPU and corresponding integrated graphics.)