summary refs log tree commit diff
path: root/nixos/modules/services/x11
diff options
context:
space:
mode:
authorRaymond Gauthier <jraygauthier@gmail.com>2015-10-10 12:16:42 -0400
committerVladimír Čunát <vcunat@gmail.com>2015-11-24 09:51:39 +0100
commit662bbb526c09e522846183005f56ace7b709ef76 (patch)
treed81e553d9bf1339e7feac71a0d04de2feaab8c2e /nixos/modules/services/x11
parentb2409581f8aee234399508764ff8f596f1835056 (diff)
downloadnixlib-662bbb526c09e522846183005f56ace7b709ef76.tar
nixlib-662bbb526c09e522846183005f56ace7b709ef76.tar.gz
nixlib-662bbb526c09e522846183005f56ace7b709ef76.tar.bz2
nixlib-662bbb526c09e522846183005f56ace7b709ef76.tar.lz
nixlib-662bbb526c09e522846183005f56ace7b709ef76.tar.xz
nixlib-662bbb526c09e522846183005f56ace7b709ef76.tar.zst
nixlib-662bbb526c09e522846183005f56ace7b709ef76.zip
thunar: improvements (close #10306)
Add the possibility to specify plugin set to
be used as overridable `thunar` derivation argument.

New nixos config attribute:
`services.xserver.desktopManager.xfce.thunarPlugins`
that allows user to specify plugins in the context
of nixos.

Tests:

 -  With and without plugins.
 -  Using the nixos attributes.
Diffstat (limited to 'nixos/modules/services/x11')
-rw-r--r--nixos/modules/services/x11/desktop-managers/xfce.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/xfce.nix b/nixos/modules/services/x11/desktop-managers/xfce.nix
index 88eefa13de35..33b6dd32c193 100644
--- a/nixos/modules/services/x11/desktop-managers/xfce.nix
+++ b/nixos/modules/services/x11/desktop-managers/xfce.nix
@@ -18,6 +18,14 @@ in
       description = "Enable the Xfce desktop environment.";
     };
 
+    services.xserver.desktopManager.xfce.thunarPlugins = mkOption {
+      default = [];
+      type = types.listOf types.package;
+      example = literalExample "[ pkgs.xfce.thunar-archive-plugin ]";
+      description = ''
+        A list of plugin that should be installed with Thunar.
+      '';
+    };
   };
 
 
@@ -49,7 +57,7 @@ in
         pkgs.xfce.mousepad
         pkgs.xfce.ristretto
         pkgs.xfce.terminal
-        pkgs.xfce.thunar
+       (pkgs.xfce.thunar.override { thunarPlugins = cfg.thunarPlugins; })
         pkgs.xfce.xfce4icontheme
         pkgs.xfce.xfce4panel
         pkgs.xfce.xfce4session