Skip to content

Commit 446bc00

Browse files
committed
fix: allow steamos-manager to override sddm config
1 parent aa31fa7 commit 446bc00

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

modules/steam/autostart.nix

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,21 +73,21 @@ in
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.

0 commit comments

Comments
 (0)