Merge pull request #93764 from evenbrenden/xdg-session-id-user-units

nixos/displayManager: add XDG_SESSION_ID to systemd user environment
This commit is contained in:
WORLDofPEACE
2020-09-08 21:29:24 -04:00
committed by GitHub
2 changed files with 25 additions and 8 deletions

View File

@@ -34,7 +34,7 @@ in
partOf = [ "graphical-session.target" ];
serviceConfig.ExecStart = with lib;
strings.concatStringsSep " " ([
"${pkgs.xss-lock}/bin/xss-lock"
"${pkgs.xss-lock}/bin/xss-lock" "--session \${XDG_SESSION_ID}"
] ++ (map escapeShellArg cfg.extraOptions) ++ [
"--"
cfg.lockerCommand