nixos/xmonad: allow passing compile time options to ghc invocation
commit10ecd1f45bf9f7bde9d58995e96dfa77641c6965
authorDominik Xaver Hörl <hoe.dom@gmx.de>
dateMon 7 Sep 2020, 20:16 (6 years ago)
parent15d87cb
nixos/modules/services/x11/window-managers/xmonad.nix+10
@@ -16,6 +16,7 @@ let
1616 cfg.extraPackages cfg.haskellPackages ++
1717 optionals cfg.enableContribAndExtras
1818 (with cfg.haskellPackages; [ xmonad-contrib xmonad-extras ]);
19+ inherit (cfg) ghcArgs;
1920 } cfg.config;
2021
2122in
@@ -85,6 +86,15 @@ in
8586 '';
8687 };
8788
89+ ghcArgs = mkOption {
90+ default = [];
91+ type = with lib.types; listOf str;
92+ description = ''
93+ Command line arguments passed to the compiler (ghc)
94+ invocation when xmonad.config is set.
95+ '';
96+ };
97+
8898 };
8999 };
90100 config = mkIf cfg.enable {