summaryrefslogtreecommitdiff
path: root/features/user/cli/bundles/go-env.nix
diff options
context:
space:
mode:
authoroutremonde <outremonde@vivaldi.net>2025-06-10 20:32:00 -0400
committeroutremonde <outremonde@vivaldi.net>2025-06-10 20:32:00 -0400
commit9786eb8672213344d8d1b7bdef12bc94510b20db (patch)
treeb7d79440800c92d32187ab32c636b0830c94a610 /features/user/cli/bundles/go-env.nix
initialized repository
Former-commit-id: 84647f22b951a957b2b83885b612115d473f6626
Diffstat (limited to 'features/user/cli/bundles/go-env.nix')
-rw-r--r--features/user/cli/bundles/go-env.nix14
1 files changed, 14 insertions, 0 deletions
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
+ ];
+ };
+}