From 9786eb8672213344d8d1b7bdef12bc94510b20db Mon Sep 17 00:00:00 2001 From: outremonde Date: Tue, 10 Jun 2025 20:32:00 -0400 Subject: initialized repository Former-commit-id: 84647f22b951a957b2b83885b612115d473f6626 --- features/user/cli/bundles/go-env.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 features/user/cli/bundles/go-env.nix (limited to 'features/user/cli/bundles/go-env.nix') diff --git a/features/user/cli/bundles/go-env.nix b/features/user/cli/bundles/go-env.nix new file mode 100644 index 0000000..6e103a3 --- /dev/null +++ b/features/user/cli/bundles/go-env.nix @@ -0,0 +1,14 @@ +{ config, pkgs, lib, ... }: let + cfg = config.features.cli.bundles.go-env; +in { + options.features.cli.bundles.go-env.enable = lib.mkEnableOption "go-env"; + config = lib.mkIf cfg.enable { + home.sessionVariables = { + GOPATH = "~/.go"; + }; + home.packages = with pkgs; [ + go + gopls + ]; + }; +} -- cgit v1.2.3