mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
41 lines
1.4 KiB
Nix
41 lines
1.4 KiB
Nix
{ config, pkgs, ... }:
|
|
{
|
|
home-manager.users.me.home.file = {
|
|
".ghc/ghci.conf".text = ''
|
|
:set editor vim
|
|
:def hoogle \s -> return $ ":!${pkgs.haskellPackages.hoogle}/bin/hoogle search --color -l --count=15 \"" ++ s ++ "\""
|
|
:def doc \s -> return $ ":!${pkgs.haskellPackages.hoogle}/bin/hoogle search --color -l --info \"" ++ s ++ "\""
|
|
:def pl \x -> return $ ":!${pkgs.haskellPackages.pointfree}/bin/pointfree -v \"" ++ x ++ "\""
|
|
:def unpl \x -> return $ ":!${pkgs.haskellPackages.pointful}/bin/pointful \"" ++ x ++ "\""
|
|
:set prompt "\o033[1m%s\o033[1;34m λ\o033[0m "
|
|
:set -Wall
|
|
'';
|
|
".stack/config.yaml".text = let user = config.niveum.user; in ''
|
|
templates:
|
|
params:
|
|
author-name: ${user.name}
|
|
author-email: ${user.email}
|
|
copyright: 'Copyright: (c) 2019 ${user.name}'
|
|
github-username: ${user.github}
|
|
'';
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
cabal2nix
|
|
stack2nix
|
|
cabal-install
|
|
hlint
|
|
haskellPackages.brittany
|
|
(haskellPackages.ghcWithHoogle (import <dot/haskells.nix>))
|
|
] ++ map haskell.lib.justStaticExecutables [
|
|
haskellPackages.ghcid
|
|
haskellPackages.hakyll
|
|
haskellPackages.hfmt
|
|
haskellPackages.hasktags
|
|
haskellPackages.hindent
|
|
haskellPackages.pointfree
|
|
haskellPackages.pointful
|
|
haskellPackages.hpack
|
|
];
|
|
}
|