blob: a1a97fb16f12140841bb80e601829e0790b50421 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{ lib, config, pkgs, ... }:
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" ];
package = pkgs.go_1_18;
};
home.packages = with pkgs; [ gopls ];
home.sessionPath = [ config.home.sessionVariables.GOBIN ];
};
}
|