diff options
Diffstat (limited to 'home/go')
-rw-r--r-- | home/go/default.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/home/go/default.nix b/home/go/default.nix new file mode 100644 index 0000000..c316189 --- /dev/null +++ b/home/go/default.nix @@ -0,0 +1,16 @@ +{ config, ... }: +let cfg = config.my.home.go; +in { + options.my.home.go = with lib.my; { + enable = mkEnableOption "go configuration"; + }; + + config.programs.go = lib.mkIf cfg.enable { + enable = true; + goPath = ".local/share/pkg.go"; + goBin = ".local/bin.go"; + goPrivate = [ "git.fcuny.net" "golang.fcuny.net" ]; + }; + + # home.sessionPath = [ config.home.sessionVariables.GOBIN ]; +} |