aboutsummaryrefslogtreecommitdiff
path: root/home/dev.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-12-14 06:19:50 -0800
committerFranck Cuny <franck@fcuny.net>2023-12-14 06:19:59 -0800
commit94142ef5780de4a049436de08b8d7e0cd3d04245 (patch)
tree7e55f6a70bba904934a088d43f464bccbb78bdb3 /home/dev.nix
parentbuild(deps): bump cachix/install-nix-action from 23 to 24 (diff)
downloadinfra-94142ef5780de4a049436de08b8d7e0cd3d04245.tar.gz
simplify the layout
Diffstat (limited to 'home/dev.nix')
-rw-r--r--home/dev.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/home/dev.nix b/home/dev.nix
new file mode 100644
index 0000000..a860027
--- /dev/null
+++ b/home/dev.nix
@@ -0,0 +1,47 @@
+{ pkgs, config, ... }:
+let
+ pythonEnv = pkgs.python3.withPackages (p: with p; [
+ black
+ click
+ isort
+ pylsp-mypy
+ requests
+ types-requests
+ pip
+ ipython
+ virtualenv
+ ]);
+in
+{
+ programs.go = {
+ enable = true;
+ goPath = ".local/share/pkg.go";
+ goBin = ".local/bin.go";
+ package = pkgs.go_1_20;
+ };
+
+ home.packages = with pkgs; [
+ go-tools
+ golangci-lint
+ gopls
+
+ dive # explore layers in docker images
+
+ pythonEnv
+
+ google-cloud-sdk
+
+ ];
+
+ 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";
+ };
+}