about summary refs log tree commit diff
path: root/home/go/default.nix
blob: 4cc15ef55c2ffaffc11ee04cb3824b2d87bdc1d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ lib, config, ... }:
let cfg = config.my.home.go;
in
{
  options.my.home.go = with lib; {
    enable = mkEnableOption "go configuration";
  };

  config = lib.mkIf cfg.enable {
    programs.go = {
      enable = true;
      goPath = ".local/share/pkg.go";
      goBin = ".local/bin.go";
      goPrivate = [ "git.fcuny.net" "golang.fcuny.net" ];
    };
    home.sessionPath = [ config.home.sessionVariables.GOBIN ];
  };
}