nixos/xmonad: allow passing compile time options to ghc invocation

This commit is contained in:
Dominik Xaver Hörl 2020-09-07 20:16:25 +02:00
parent 15d87cb81c
commit 10ecd1f45b

View file

@ -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 {