diff options
Diffstat (limited to '.config/nixpkgs/shells')
-rw-r--r-- | .config/nixpkgs/shells/ansible-mitogen.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.config/nixpkgs/shells/ansible-mitogen.nix b/.config/nixpkgs/shells/ansible-mitogen.nix new file mode 100644 index 0000000..e5118b0 --- /dev/null +++ b/.config/nixpkgs/shells/ansible-mitogen.nix @@ -0,0 +1,17 @@ +with import <nixpkgs> {}; + +mkShell { + + name = "ansible"; + buildInputs = with python38.pkgs; [ pip ]; + shellHook = '' + export virtualenvs=$HOME/.local/share/virtualenvs + mkdir -p $virtualenvs + python -m venv $virtualenvs/ansible-mitogen + . $virtualenvs/ansible-mitogen/bin/activate + 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) ' + ''; +} |