Add options for setting theme and setup-script in KDM

This commit is contained in:
Rickard Nilsson 2013-02-15 13:48:34 +01:00
parent f2a0710bee
commit b0f33f2052

View File

@ -32,10 +32,20 @@ let
ServerTimeout=60 ServerTimeout=60
# Needed to prevent the X server from dying on logout and not coming back: # Needed to prevent the X server from dying on logout and not coming back:
TerminateServer=true TerminateServer=true
${optionalString (cfg.setupScript != "")
''
Setup=${cfg.setupScript}
''}
[X-*-Greeter] [X-*-Greeter]
HiddenUsers=root,nixbld1,nixbld2,nixbld3,nixbld4,nixbld5,nixbld6,nixbld7,nixbld8,nixbld9,nixbld10 HiddenUsers=root,nixbld1,nixbld2,nixbld3,nixbld4,nixbld5,nixbld6,nixbld7,nixbld8,nixbld9,nixbld10
PluginsLogin=${kdebase_workspace}/lib/kde4/kgreet_classic.so PluginsLogin=${kdebase_workspace}/lib/kde4/kgreet_classic.so
${optionalString (cfg.themeDirectory != "")
''
UseTheme=true
Theme=${cfg.themeDirectory}
''
}
${optionalString (cfg.enableXDMCP) ${optionalString (cfg.enableXDMCP)
'' ''
@ -81,6 +91,23 @@ in
''; '';
}; };
themeDirectory = mkOption {
default = "";
description = ''
The path to a KDM theme directory. This theme
will be used by the KDM greeter.
'';
};
setupScript = mkOption {
default = "";
description = ''
The path to a KDM setup script. This script is run as root just
before KDM starts. Can be used for setting up
monitors with xrandr, for example.
'';
};
extraConfig = mkOption { extraConfig = mkOption {
default = ""; default = "";
description = '' description = ''