2024-04-20 09:42:06 -04:00
|
|
|
{ config, lib, ... }:
|
2025-01-29 21:12:48 -05:00
|
|
|
let
|
|
|
|
cfg = config.nmasur.presets.programs.haskell;
|
|
|
|
in
|
2024-04-20 09:42:06 -04:00
|
|
|
{
|
2022-07-04 19:17:58 -04:00
|
|
|
|
2025-01-29 21:12:48 -05:00
|
|
|
options.nmasur.presets.programs.haskell.enable =
|
|
|
|
lib.mkEnableOption "Haskell programming language config.";
|
2022-12-21 14:18:03 -07:00
|
|
|
|
2025-01-29 21:12:48 -05:00
|
|
|
config = lib.mkIf cfg.enable {
|
2022-12-21 14:18:03 -07:00
|
|
|
|
|
|
|
# Binary Cache for Haskell.nix
|
2024-04-20 09:42:06 -04:00
|
|
|
nix.settings.trusted-public-keys = [ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" ];
|
2022-12-21 14:18:03 -07:00
|
|
|
nix.settings.substituters = [ "https://cache.iog.io" ];
|
|
|
|
};
|
2022-07-04 19:17:58 -04:00
|
|
|
}
|