From 27cd8af0478a710529f65cc95a558e934b6b1bf1 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Sat, 9 Nov 2024 00:20:37 +0800 Subject: [PATCH] home/go: remove redundant config --- home/applications/go/default.nix | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/home/applications/go/default.nix b/home/applications/go/default.nix index 9d034ac..dae261c 100644 --- a/home/applications/go/default.nix +++ b/home/applications/go/default.nix @@ -1,16 +1,12 @@ { pkgs, config, ... }: { - programs.go.enable = true; home.packages = with pkgs; [ + go gopls - delve - go-tools ]; - xdg.configFile = { - "go/env".text = '' - GOPATH=${config.xdg.cacheHome}/go - GOBIN=${config.xdg.stateHome}/go/bin - ''; - }; + xdg.configFile."go/env".text = '' + GOPATH=${config.xdg.cacheHome}/go + GOBIN=${config.xdg.stateHome}/go/bin + ''; }