mate-session-manager: add debug option to mate service

This commit is contained in:
José Romildo Malaquias 2017-12-24 23:12:31 -02:00 committed by Tuomas Tynkkynen
parent 2e285a3e6c
commit 1bacb88c6a

View File

@ -20,10 +20,14 @@ in
{ {
options = { options = {
services.xserver.desktopManager.mate.enable = mkOption { services.xserver.desktopManager.mate = {
type = types.bool; enable = mkOption {
default = false; type = types.bool;
description = "Enable the MATE desktop environment"; default = false;
description = "Enable the MATE desktop environment";
};
debug = mkEnableOption "mate-session debug messages";
}; };
environment.mate.excludePackages = mkOption { environment.mate.excludePackages = mkOption {
@ -55,7 +59,7 @@ in
# Update user dirs as described in http://freedesktop.org/wiki/Software/xdg-user-dirs/ # Update user dirs as described in http://freedesktop.org/wiki/Software/xdg-user-dirs/
${pkgs.xdg-user-dirs}/bin/xdg-user-dirs-update ${pkgs.xdg-user-dirs}/bin/xdg-user-dirs-update
${pkgs.mate.mate-session-manager}/bin/mate-session & ${pkgs.mate.mate-session-manager}/bin/mate-session ${optionalString cfg.debug "--debug"} &
waitPID=$! waitPID=$!
''; '';
}; };