about summary refs log tree commit diff
path: root/nixos/modules/services/x11/window-managers/xmonad.nix
diff options
context:
space:
mode:
authorDominik Xaver Hörl <hoe.dom@gmx.de>2020-09-07 20:16:25 +0200
committerDominik Xaver Hörl <hoe.dom@gmx.de>2020-09-07 20:16:25 +0200
commit10ecd1f45bf9f7bde9d58995e96dfa77641c6965 (patch)
treebeac928a0efe1bf0e410cad89e5476c67155c300 /nixos/modules/services/x11/window-managers/xmonad.nix
parent15d87cb81c61d10a641449529ab94e1a2552492c (diff)
nixos/xmonad: allow passing compile time options to ghc invocation
Diffstat (limited to 'nixos/modules/services/x11/window-managers/xmonad.nix')
-rw-r--r--nixos/modules/services/x11/window-managers/xmonad.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/window-managers/xmonad.nix b/nixos/modules/services/x11/window-managers/xmonad.nix
index c834b479a46c4..dba25da8260ce 100644
--- a/nixos/modules/services/x11/window-managers/xmonad.nix
+++ b/nixos/modules/services/x11/window-managers/xmonad.nix
@@ -16,6 +16,7 @@ let
                 cfg.extraPackages cfg.haskellPackages ++
                 optionals cfg.enableContribAndExtras
                 (with cfg.haskellPackages; [ xmonad-contrib xmonad-extras ]);
+    inherit (cfg) ghcArgs;
   } cfg.config;
 
 in
@@ -85,6 +86,15 @@ in
         '';
       };
 
+      ghcArgs = mkOption {
+        default = [];
+        type = with lib.types; listOf str;
+        description = ''
+          Command line arguments passed to the compiler (ghc)
+          invocation when xmonad.config is set.
+        '';
+      };
+
     };
   };
   config = mkIf cfg.enable {