summaryrefslogtreecommitdiff
path: root/profiles/darwin.nix
blob: c221e9ef165d3299ed9119475e1c2eb119879155 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ pkgs, ... }:

let
  homedir = builtins.getEnv "HOME";
  haskellOverlay = self: super: {
    haskellPackages = super.haskellPackages.override (old: {
      overrides = self: super: {
        hledger = self.callPackage ./pkgs/hledger-1.19.1.nix {};
        hledger-lib = self.callPackage ./pkgs/hledger-lib-1.19.1.nix {};
      };
    });
  };
in
{
  nixpkgs.overlays = [
    haskellOverlay
  ];

  imports = [
    ./lib/common.nix
    ./lib/email.nix
  ];
  home = {
    sessionVariables.PATH = "/usr/local/opt/mysql@5.7/bin:${homedir}/bin:${homedir}/.cabal/bin:${homedir}/.local/bin:$PATH";
    packages = with pkgs; [
      muchsync
      (haskellPackages.ghcWithPackages (ps: with ps; [hledger]))
      coreutils
    ];
  };

  programs = {

    # Doesnt' work bc clang can't compile it??
    #qutebrowser = {
    #  enable = true;
    #  settings = {
    #    "colors.webpage.darkmode.enabled" = true;
    #  };
    #};

 };
}