File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 7373 to keep this behavior.
7474 '' ;
7575
76-
76+ # Disable NixOS's autologin config generation.
77+ # We put autologin config in sddm.conf.d instead so that steamos-manager's
78+ # zzt-steamos-temp-login.conf can override the session on Switch to Desktop.
79+ # (SDDM reads conf.d files alphabetically, so zzt > 00)
7780 services . displayManager = {
78- autoLogin = {
79- enable = true ;
80- user = cfg . user ;
81- } ;
82- sddm = {
83- enable = true ;
84- autoLogin . relogin = true ;
85- } ;
86- defaultSession = "gamescope-wayland" ;
81+ autoLogin . enable = lib . mkForce false ;
82+ sddm . enable = true ;
8783 } ;
8884
89- # tell steamos-manager it's allowed to manage our session
90- environment . etc . "sddm.conf.d/steamos.conf" . text = "" ;
85+ environment . etc . "sddm.conf.d/00-jovian-autologin.conf" . text = ''
86+ [Autologin]
87+ User=${ cfg . user }
88+ Relogin=true
89+ Session=gamescope-wayland.desktop
90+ '' ;
9191
9292 # Steam overrides this SOMETIMES seemingly for no reason
9393 # so we need to force it back to the user's choice.
You can’t perform that action at this time.
0 commit comments