dotfiles/nix/home-manager/modules/shh/default.nix

20 lines
383 B
Nix
Raw Normal View History

{ 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
];
};
}