commit 3baf9cd6b3a2e0e7c9367c90077d0cee6b67a2e0
parent 8651c944ee2420cd3453be9b493b20602d6d6bd9
Author: Vincent Demeester <vincent@sbr.pm>
Date: Sat, 29 Jun 2019 14:42:17 +0200
profiles.dev.go: add GOPATH to sessionVariables & all
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/modules/profiles/dev.go.nix b/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
diff --git a/modules/profiles/zsh.nix b/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"