Skip to content

fix: allow steamos-manager to override sddm config#553

Closed
Titaniumtown wants to merge 3 commits intoJovian-Experiments:developmentfrom
Titaniumtown:pr/fix-sddm-switch-to-desktop
Closed

fix: allow steamos-manager to override sddm config#553
Titaniumtown wants to merge 3 commits intoJovian-Experiments:developmentfrom
Titaniumtown:pr/fix-sddm-switch-to-desktop

Conversation

@Titaniumtown
Copy link
Contributor

steamos-manager creates a file zzt-steamos-temp-login.conf in order to temporarily override the sddm config in order to switch to desktop. But we were hard coding this into sddm.conf, we should've really be doing this in a seperate config in sddm.conf.d so that steamos-manager's config can override it when the user requests to switch to desktop.

This matches how it works on SteamOS.

@Titaniumtown Titaniumtown force-pushed the pr/fix-sddm-switch-to-desktop branch from 446bc00 to 261d635 Compare February 27, 2026 05:07
@Titaniumtown Titaniumtown force-pushed the pr/fix-sddm-switch-to-desktop branch from 261d635 to 68f2a68 Compare February 27, 2026 05:20
# Disable NixOS's autologin config generation.
# We put autologin config in sddm.conf.d instead so that steamos-manager's
# zzt-steamos-temp-login.conf can override the session on Switch to Desktop.
# (SDDM reads conf.d files alphabetically, so zzt > 00)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed this in nixpkgs, this should not be necessary.

install -m644 "data/system/steamos-manager.service" "$out/lib/systemd/system/"

install -d -m0755 "$out/lib/systemd/system/sddm.service.d/"
install -m644 "data/system/reset-oneshot-boot.conf" "$out/lib/systemd/system/sddm.service.d/"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not do anything, because our service name is display-manager.service (for legacy reasons). It should probably be set in the NixOS module instead.

@K900
Copy link
Contributor

K900 commented Feb 27, 2026

I've merged bits of this.

@K900 K900 closed this Feb 27, 2026
@Titaniumtown
Copy link
Contributor Author

Ok great! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants