refactor(go): nixify 'GOPATH' environment variable

This commit is contained in:
2026-08-23 13:32:24 +02:00
parent 34205bf384
commit db31984573
2 changed files with 8 additions and 12 deletions
-4
View File
@@ -82,10 +82,6 @@ else
fi
# }}}
# Go {{{
export GOPATH="${XDG_DATA_HOME}/go"
# }}}
# Jupyter {{{
export JUPYTERLAB_DIR=$HOME/.local/share/jupyter/lab
# }}}
+5 -5
View File
@@ -5,18 +5,18 @@
...
}:
let
cfg = config.go;
in
{
options.go = {
enable = lib.mkEnableOption "Go";
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
config = lib.mkIf config.go.enable {
home = {
sessionVariables.GOPATH = "${config.xdg.dataHome}/go";
packages = with pkgs; [
go
gopls
];
};
};
}