diff options
Diffstat (limited to 'home/go/default.nix')
-rw-r--r-- | home/go/default.nix | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/home/go/default.nix b/home/go/default.nix index c316189..24748d0 100644 --- a/home/go/default.nix +++ b/home/go/default.nix @@ -1,16 +1,17 @@ -{ config, ... }: +{ lib, config, ... }: let cfg = config.my.home.go; in { - options.my.home.go = with lib.my; { + options.my.home.go = with lib; { 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" ]; + 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 ]; }; - - # home.sessionPath = [ config.home.sessionVariables.GOBIN ]; } |