dotfiles/nix/home-manager/modules/shh/default.nix
Magic_RB ce73f39891
Add shh, a Haskell shell
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2021-08-19 18:24:38 +02:00

20 lines
383 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.magic_rb.programs.shh;
in
{
options.magic_rb.programs.shh = {
enable = mkEnableOption "Enable shh, the Haskell shell.";
};
config = mkIf cfg.enable {
home.file.".shh/Shell.hs".source = ./Shell.hs;
home.file.".shh/init.ghci".source = ./init.ghci;
home.packages = [
pkgs.magic_rb.shh
];
};
}