Skip to content

Commit

Permalink
nixos.display-managers: use new attribute for desktop names
Browse files Browse the repository at this point in the history
  • Loading branch information
romildo committed Mar 28, 2020
1 parent 11b2136 commit fb47c6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nixos/modules/services/x11/display-managers/default.nix
Expand Up @@ -412,6 +412,9 @@ in
(dm: wm: let
sessionName = "${dm.name}${optionalString (wm.name != "none") ("+" + wm.name)}";
script = xsession dm wm;
desktopNames = if dm ? desktopNames
then concatStringsSep ";" dm.desktopNames
else sessionName;
in
optional (dm.name != "none" || wm.name != "none")
(pkgs.writeTextFile {
Expand All @@ -427,7 +430,7 @@ in
TryExec=${script}
Exec=${script}
Name=${sessionName}
DesktopNames=${sessionName}
DesktopNames=${desktopNames}
'';
} // {
providedSessions = [ sessionName ];
Expand Down

0 comments on commit fb47c6f

Please sign in to comment.