Commit Graph

7 Commits

Author SHA1 Message Date
Samuel Ainsworth
7ce9753bd8 nixos/niri: pin defaultSession so GDM 50 stops bouncing to gnome-session
GDM 50 falls back to launching `gnome-session` as the user session
command when the AccountsService record has `Session=` empty and
`services.displayManager.defaultSession` is unset. On a Niri-only
machine the spawn fails with ENOENT and the user is bounced back to
the greeter — an indefinite login loop after a fresh install or after
the AccountsService record gets reset.

GDM 49 hit the same fallback path but happened to find gnome-session
on PATH; the user's first session pick then got stashed in
AccountsService and subsequent logins worked. GDM 50's tighter
environment removed the accidental save.

Setting `services.displayManager.defaultSession = lib.mkDefault "niri"`
inside `programs.niri` makes a Niri-only install boot straight into
the compositor. Users running multiple session packages can still
override via a plain assignment.

Refs https://github.com/NixOS/nixpkgs/issues/523332
2026-06-05 14:17:17 -04:00
r-vdp
5c7bdcef03 nixos/niri: don't restart niri.service on switch
The packaged user unit bakes the niri store path into ExecStart, so
any rebuild of niri (including transitive dependency bumps) makes
switch-to-configuration restart it, killing the graphical session.

Mirror the display-manager modules and mark the unit
restartIfChanged = false. Disable the default PATH injection so the
generated drop-in does not override the environment imported by
niri-session.
2026-05-13 12:10:25 +02:00
Aleksana
617d2df813 nixos/niri: fix xdg portal being ignored (#465536) 2025-12-16 10:40:17 +00:00
aleksana
053ff893fa nixos/niri: move nautilus to dbus package 2025-12-04 16:27:35 +08:00
Guanran Wang
7bc65feef6 nixos/niri: fix xdg portal being ignored 2025-11-27 20:12:27 +08:00
Guanran Wang
ac518ed16b nixos/niri: add nautilus to systemPackages 2025-11-16 16:44:36 +08:00
seth
942b12caba nixos/niri: init module 2024-10-21 21:00:17 -04:00