Commit 3baf9cd6b3a2

Vincent Demeester <vincent@sbr.pm>
2019-06-29 14:42:17
profiles.dev.go: add GOPATH to sessionVariables & all
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 8651c94
Changed files (2)
modules
modules/profiles/dev.go.nix
@@ -16,6 +16,9 @@ in
   };
   config = mkIf cfg.enable (mkMerge [
     {
+      home.sessionVariables = {
+        GOPATH = "${config.home.homeDirectory}";
+      };
       profiles.dev.enable = true;
       home.packages = with pkgs; [
         gcc
modules/profiles/zsh.nix
@@ -35,6 +35,7 @@ in
           EMOJI_CLI_KEYBIND = "^n";
           EMOJI_CLI_USE_EMOJI = "yes";
           ZSH_HIGHLIGHT_HIGHLIGHTERS = [ "main" "brackets" "pattern" ];
+          GOPATH = "${config.home.homeDirectory}";
         };
         shellAliases = import ./aliases.shell.nix;
         plugins = [
@@ -75,6 +76,9 @@ in
              };
           }
         ];
+        loginExtra = ''
+        export GOPATH=${config.home.homeDirectory}
+        '';
         initExtra = ''
           path+="$HOME/${config.programs.zsh.dotDir}/functions"
           fpath+="$HOME/${config.programs.zsh.dotDir}/functions"