ReGreet shows up with a white screen after booting

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

1 Like

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.)

Probably should post my configuration:

And the nixos system metadata if I need to report to downstream (nixpkgs):

- system: `"x86_64-linux"`
 - host os: `Linux 6.12.32, NixOS, 25.05 (Warbler), 25.05.20250609.88331c1`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Lix, like Nix) 2.93.0
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/samgo/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/samgo/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/samgo/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/samgo/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/7wv7x01fjp05n40yb263wlrm0hvhzbyn-lix-2.93.0/share`
 - nixpkgs: `/nix/store/1148rpggkwng15isy82ikww5kbxk8dl6-source`