summary refs log tree commit diff
path: root/nixos/modules/services/x11
diff options
context:
space:
mode:
authorJosé Romildo Malaquias <malaquias@gmail.com>2017-12-24 23:12:31 -0200
committerTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2018-01-09 02:40:04 +0200
commit1bacb88c6a9ce903574fab31f1665d174a3490c7 (patch)
tree1fb3373f99b275151c8b385d50fff24b1ec326ad /nixos/modules/services/x11
parent2e285a3e6cf23d8df398ad5540d9ad24fb80d033 (diff)
downloadnixlib-1bacb88c6a9ce903574fab31f1665d174a3490c7.tar
nixlib-1bacb88c6a9ce903574fab31f1665d174a3490c7.tar.gz
nixlib-1bacb88c6a9ce903574fab31f1665d174a3490c7.tar.bz2
nixlib-1bacb88c6a9ce903574fab31f1665d174a3490c7.tar.lz
nixlib-1bacb88c6a9ce903574fab31f1665d174a3490c7.tar.xz
nixlib-1bacb88c6a9ce903574fab31f1665d174a3490c7.tar.zst
nixlib-1bacb88c6a9ce903574fab31f1665d174a3490c7.zip
mate-session-manager: add debug option to mate service
Diffstat (limited to 'nixos/modules/services/x11')
-rw-r--r--nixos/modules/services/x11/desktop-managers/mate.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/mate.nix b/nixos/modules/services/x11/desktop-managers/mate.nix
index 6ec56f2b1535..ffb2e123538b 100644
--- a/nixos/modules/services/x11/desktop-managers/mate.nix
+++ b/nixos/modules/services/x11/desktop-managers/mate.nix
@@ -20,10 +20,14 @@ in
 {
   options = {
 
-    services.xserver.desktopManager.mate.enable = mkOption {
-      type = types.bool;
-      default = false;
-      description = "Enable the MATE desktop environment";
+    services.xserver.desktopManager.mate = {
+      enable = mkOption {
+        type = types.bool;
+        default = false;
+        description = "Enable the MATE desktop environment";
+      };
+
+      debug = mkEnableOption "mate-session debug messages";
     };
 
     environment.mate.excludePackages = mkOption {
@@ -55,7 +59,7 @@ in
         # Update user dirs as described in http://freedesktop.org/wiki/Software/xdg-user-dirs/
         ${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=$!
       '';
     };