aboutsummaryrefslogtreecommitdiff
path: root/.config/nixpkgs/shells
diff options
context:
space:
mode:
Diffstat (limited to '.config/nixpkgs/shells')
-rw-r--r--.config/nixpkgs/shells/deploy-personal.nix (renamed from .config/nixpkgs/shells/ansible-mitogen.nix)5
1 files changed, 4 insertions, 1 deletions
diff --git a/.config/nixpkgs/shells/ansible-mitogen.nix b/.config/nixpkgs/shells/deploy-personal.nix
index df263c8..da2e2a9 100644
--- a/.config/nixpkgs/shells/ansible-mitogen.nix
+++ b/.config/nixpkgs/shells/deploy-personal.nix
@@ -1,10 +1,13 @@
with import <nixpkgs> {};
+let version = "f8248ab6d9e69ea9c07950d73d48807ec595e923"; in
+
mkShell {
name = "ansible";
buildInputs = with python38.pkgs; [ pip ];
shellHook = ''
export VAULT_ADDR='http://vault.test'
+ export NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/${version}.tar.gz
export virtualenvs=$HOME/.local/share/virtualenvs
mkdir -p $virtualenvs
python -m venv $virtualenvs/ansible-mitogen
@@ -12,6 +15,6 @@ mkShell {
python -m pip install mitogen
export ANSIBLE_STRATEGY_PLUGINS=$virtualenvs/ansible-mitogen/lib/python3.8/site-packages/ansible_mitogen/plugins
export ANSIBLE_STRATEGY=mitogen_linear
- export PS1='(ansible-mitogen) \W \$ '
+ export PS1='\h (deploy-personal) \W \$ '
'';
}