nixos/display-manager.default: add extraSessionFilePackages option

This commit is contained in:
Jan Tojnar 2018-07-23 01:11:26 +02:00
parent a8c6489fd4
commit 83fc9a9825
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -199,6 +199,10 @@ let
Comment=
EODESKTOP
'') names}
${concatMapStrings (pkg: ''
${xorg.lndir}/bin/lndir ${pkg}/share/xsessions $out/share/xsessions
'') cfg.displayManager.extraSessionFilePackages}
'';
in
@ -245,6 +249,14 @@ in
'';
};
extraSessionFilePackages = mkOption {
type = types.listOf types.package;
default = [];
description = ''
A list of packages containing xsession files to be passed to the display manager.
'';
};
session = mkOption {
default = [];
example = literalExample