mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-26 18:16:13 +01:00
20 lines
383 B
Nix
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
|
||
|
];
|
||
|
};
|
||
|
}
|