-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
nixos/displayManager: add XDG_SESSION_ID to systemd user environment #93764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/displayManager: add XDG_SESSION_ID to systemd user environment #93764
Conversation
9b3ab47
to
235dc5c
Compare
235dc5c
to
58773b3
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
xss-lock needs XDG_SESSION_ID to respond to loginctl lock-session(s) (and possibly other session operations such as idle hint management). This change adds XDG_SESSION_ID to the list of imported environment variables when starting systemctl. Inspired by home-manager, add importVariables configuration. Set session to XDG_SESSION_ID when running xss-lock as a service. Co-authored-by: misuzu <bakalolka@gmail.com>
58773b3
to
660882d
Compare
@ofborg eval |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/how-to-config-hybrid-sleep-after-idle-and-lock/8728/12 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. importedVariables
is a nice improvement :)
As far as I understand, the grahamcofborg-eval-nixpkgs-unstable-jobset failure was #97170, which is closed and unrelated. @worldofpeace does it make sense to trigger another eval? |
@ofborg eval |
Yep |
This is a revamp of @misuzu's #67751, with SLiM changes omitted and xss-lock changes added.
Motivation for this change
xss-lock needs
XDG_SESSION_ID
to respond tologinctl lock-session
(and possibly other session operations such as idle hint management). Tested with LightDM.Things done
Add
XDG_SESSION_ID
to the list of imported environment variables when starting systemctl.Inspired by home-manager, add
importVariables
configuration.Set session to
XDG_SESSION_ID
when running xss-lock as a service.sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)