summaryrefslogtreecommitdiff
path: root/home-manager/features/cli/bundles/go-env.nix
blob: 6e103a39fd1644d56f145a88330de851e1507b0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
    ];
  };
}