aboutsummaryrefslogblamecommitdiff
path: root/nix/profiles/home-manager/dev.nix
blob: 02eb5661337bf4c061d0efe9093b5fb300c292dd (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                        



                                   
                                                                              


                              
        
            

                 
         
 
            

                                          

              
 
         
                    

            

    
                                                            





                                                  
                                         

    
{ pkgs, config, ... }: {

  programs.go = {
    enable = true;
    goPath = ".local/share/pkg.go";
    goBin = ".local/bin.go";
    goPrivate = [ "github.rbx.com/*" "github.com/fcuny/*" "git.fcuny.net/*" ];
  };

  home.packages = with pkgs; [
    # go
    go-tools
    golangci-lint
    gopls
    delve

    # docker
    dive # explore layers in docker images

    # shell
    shellcheck

    # ops
    google-cloud-sdk
    kubectl
    tfswitch
  ];

  home.sessionPath = [ config.home.sessionVariables.GOBIN ];

  home.sessionVariables = with config.xdg; {
    IPYTHONDIR = "${cacheHome}/ipython";
    PIP_LOG = "${cacheHome}/pip/pip.log";
    PYLINTHOME = "${cacheHome}/pylint";
    PYTHON_EGG_CACHE = "${cacheHome}/python-eggs";
    MYPY_CACHE_DIR = "${cacheHome}/mypy";
  };
}