1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 08:10:43 +01:00

manage Go with HM

This commit is contained in:
Ryan Cao 2023-07-20 10:18:16 +08:00
parent a36da6fe5e
commit f4d346b89c
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E
4 changed files with 7 additions and 8 deletions

View file

@ -14,6 +14,7 @@
./programs/git.nix
./programs/bat.nix
./programs/helix.nix
./programs/go.nix
];
programs.home-manager.enable = true;

View file

@ -30,10 +30,6 @@ set -x NEXT_TELEMETRY_DISABLED 1 # Next.js
set -x CHECKPOINT_DISABLE 1 # Prisma
set -x DISABLE_TELEMETRY YES # diffusers
# go
set -x GOPATH "$HOME/.go"
fish_add_path "$GOPATH/bin"
# direnv
set -x DIRENV_LOG_FORMAT ""

6
programs/go.nix Normal file
View file

@ -0,0 +1,6 @@
{...}: {
programs.go = {
enable = true;
goPath = ".go";
};
}

View file

@ -32,10 +32,6 @@ export NEXT_TELEMETRY_DISABLED=1 # Next.js
export CHECKPOINT_DISABLE=1 # Prisma
export DISABLE_TELEMETRY=YES # diffusers
# go
export GOPATH="$HOME/.go"
export PATH="$GOPATH/bin:$PATH"
# direnv
export DIRENV_LOG_FORMAT=""