use nix provided python as default interpreter
This commit is contained in:
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@@ -8,5 +8,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"terminal.integrated.defaultProfile.linux": "Nix Shell",
|
"terminal.integrated.defaultProfile.linux": "Nix Shell",
|
||||||
"ansible.python.interpreterPath": "/bin/python"
|
"ansible.python.interpreterPath": "/bin/python",
|
||||||
|
"python.defaultInterpreterPath": "${env:PYTHON_BIN}"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,12 +19,13 @@
|
|||||||
overlays = [ krew2nix.overlay ];
|
overlays = [ krew2nix.overlay ];
|
||||||
inherit system;
|
inherit system;
|
||||||
};
|
};
|
||||||
|
python = (pkgs.python313.withPackages (python-pkgs: with python-pkgs; [
|
||||||
|
hvac
|
||||||
|
]));
|
||||||
in
|
in
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
(python313.withPackages (python-pkgs: with python-pkgs; [
|
python
|
||||||
hvac
|
|
||||||
]))
|
|
||||||
vim gnumake
|
vim gnumake
|
||||||
talosctl cilium-cli
|
talosctl cilium-cli
|
||||||
kubectx k9s kubernetes-helm
|
kubectx k9s kubernetes-helm
|
||||||
@@ -53,6 +54,8 @@
|
|||||||
|
|
||||||
# Add scripts from utils subdir
|
# Add scripts from utils subdir
|
||||||
export PATH="$PATH:$(pwd)/utils"
|
export PATH="$PATH:$(pwd)/utils"
|
||||||
|
|
||||||
|
export PYTHON_BIN=${python}/bin/python
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user