diff options
Diffstat (limited to '')
-rw-r--r-- | home/go/default.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/home/go/default.nix b/home/go/default.nix new file mode 100644 index 0000000..24748d0 --- /dev/null +++ b/home/go/default.nix @@ -0,0 +1,17 @@ +{ 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 ]; + }; +} |