use nix provided python as default interpreter

This commit is contained in:
2025-04-21 23:01:58 +02:00
parent dc7f1cc42b
commit 7d389c0a8a
2 changed files with 8 additions and 4 deletions

View File

@@ -8,5 +8,6 @@
}
},
"terminal.integrated.defaultProfile.linux": "Nix Shell",
"ansible.python.interpreterPath": "/bin/python"
"ansible.python.interpreterPath": "/bin/python",
"python.defaultInterpreterPath": "${env:PYTHON_BIN}"
}

View File

@@ -19,12 +19,13 @@
overlays = [ krew2nix.overlay ];
inherit system;
};
python = (pkgs.python313.withPackages (python-pkgs: with python-pkgs; [
hvac
]));
in
pkgs.mkShell {
packages = with pkgs; [
(python313.withPackages (python-pkgs: with python-pkgs; [
hvac
]))
python
vim gnumake
talosctl cilium-cli
kubectx k9s kubernetes-helm
@@ -53,6 +54,8 @@
# Add scripts from utils subdir
export PATH="$PATH:$(pwd)/utils"
export PYTHON_BIN=${python}/bin/python
'';
};
};