mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 16:10:45 +01:00
manage Go with HM
This commit is contained in:
parent
a36da6fe5e
commit
f4d346b89c
4 changed files with 7 additions and 8 deletions
1
home.nix
1
home.nix
|
|
@ -14,6 +14,7 @@
|
||||||
./programs/git.nix
|
./programs/git.nix
|
||||||
./programs/bat.nix
|
./programs/bat.nix
|
||||||
./programs/helix.nix
|
./programs/helix.nix
|
||||||
|
./programs/go.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -30,10 +30,6 @@ set -x NEXT_TELEMETRY_DISABLED 1 # Next.js
|
||||||
set -x CHECKPOINT_DISABLE 1 # Prisma
|
set -x CHECKPOINT_DISABLE 1 # Prisma
|
||||||
set -x DISABLE_TELEMETRY YES # diffusers
|
set -x DISABLE_TELEMETRY YES # diffusers
|
||||||
|
|
||||||
# go
|
|
||||||
set -x GOPATH "$HOME/.go"
|
|
||||||
fish_add_path "$GOPATH/bin"
|
|
||||||
|
|
||||||
# direnv
|
# direnv
|
||||||
set -x DIRENV_LOG_FORMAT ""
|
set -x DIRENV_LOG_FORMAT ""
|
||||||
|
|
||||||
|
|
|
||||||
6
programs/go.nix
Normal file
6
programs/go.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{...}: {
|
||||||
|
programs.go = {
|
||||||
|
enable = true;
|
||||||
|
goPath = ".go";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -32,10 +32,6 @@ export NEXT_TELEMETRY_DISABLED=1 # Next.js
|
||||||
export CHECKPOINT_DISABLE=1 # Prisma
|
export CHECKPOINT_DISABLE=1 # Prisma
|
||||||
export DISABLE_TELEMETRY=YES # diffusers
|
export DISABLE_TELEMETRY=YES # diffusers
|
||||||
|
|
||||||
# go
|
|
||||||
export GOPATH="$HOME/.go"
|
|
||||||
export PATH="$GOPATH/bin:$PATH"
|
|
||||||
|
|
||||||
# direnv
|
# direnv
|
||||||
export DIRENV_LOG_FORMAT=""
|
export DIRENV_LOG_FORMAT=""
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue