From d59a9a7d5ced42e5c9462b37a113d96ca73458a1 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 26 Oct 2024 10:52:55 -0700 Subject: don't pin to a specific version of Go Drop python packages, they will be installed as needed per projects. --- nix/profiles/home-manager/dev.nix | 31 +++++-------------------------- 1 file changed, 5 insertions(+), 26 deletions(-) (limited to 'nix') diff --git a/nix/profiles/home-manager/dev.nix b/nix/profiles/home-manager/dev.nix index 24a8c5e..02eb566 100644 --- a/nix/profiles/home-manager/dev.nix +++ b/nix/profiles/home-manager/dev.nix @@ -1,23 +1,10 @@ -{ pkgs -, config -, ... -}: -let - pythonEnv = pkgs.python3.withPackages (p: - with p; [ - pylsp-mypy - python-lsp-ruff - python-lsp-server - ruff-lsp - ]); -in -{ +{ pkgs, config, ... }: { + programs.go = { enable = true; goPath = ".local/share/pkg.go"; goBin = ".local/bin.go"; - package = pkgs.go_1_21; - goPrivate = [ "github.rbx.com/*" "github.com/fcuny/*" ]; + goPrivate = [ "github.rbx.com/*" "github.com/fcuny/*" "git.fcuny.net/*" ]; }; home.packages = with pkgs; [ @@ -25,9 +12,7 @@ in go-tools golangci-lint gopls - - # rust - rustup + delve # docker dive # explore layers in docker images @@ -39,15 +24,9 @@ in google-cloud-sdk kubectl tfswitch - - # python - pythonEnv - ruff ]; - home.sessionPath = [ - config.home.sessionVariables.GOBIN - ]; + home.sessionPath = [ config.home.sessionVariables.GOBIN ]; home.sessionVariables = with config.xdg; { IPYTHONDIR = "${cacheHome}/ipython"; -- cgit 1.4.1