mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
nixos/displayManager: only install wayland sessions if they exist in extraSessionFilePackages
Not everyone is using wayland just yet.
This commit is contained in:
parent
48d08bea5a
commit
94af8ebde2
@ -194,9 +194,12 @@ let
|
|||||||
${xorg.lndir}/bin/lndir ${pkg}/share/xsessions $out/share/xsessions
|
${xorg.lndir}/bin/lndir ${pkg}/share/xsessions $out/share/xsessions
|
||||||
'') cfg.displayManager.extraSessionFilePackages}
|
'') cfg.displayManager.extraSessionFilePackages}
|
||||||
|
|
||||||
mkdir -p "$out/share/wayland-sessions"
|
|
||||||
${concatMapStrings (pkg: ''
|
${concatMapStrings (pkg: ''
|
||||||
${xorg.lndir}/bin/lndir ${pkg}/share/wayland-sessions $out/share/wayland-sessions
|
if test -d ${pkg}/share/wayland-sessions; then
|
||||||
|
mkdir -p "$out/share/wayland-sessions"
|
||||||
|
${xorg.lndir}/bin/lndir ${pkg}/share/wayland-sessions $out/share/wayland-sessions
|
||||||
|
fi
|
||||||
'') cfg.displayManager.extraSessionFilePackages}
|
'') cfg.displayManager.extraSessionFilePackages}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user