From 75786be481a707ca64e2ad626fb93bc8190f2fdb Mon Sep 17 00:00:00 2001 From: tdro Date: Sun, 18 Jun 2023 19:26:11 -0400 Subject: .config/nixpkgs/shells/ansible: Fix --- .config/nixpkgs/shells/ansible/shell.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to '.config/nixpkgs') diff --git a/.config/nixpkgs/shells/ansible/shell.nix b/.config/nixpkgs/shells/ansible/shell.nix index 33f0836..96eb244 100644 --- a/.config/nixpkgs/shells/ansible/shell.nix +++ b/.config/nixpkgs/shells/ansible/shell.nix @@ -11,19 +11,16 @@ let project = "${builtins.getEnv "HOME"}/Shares/Projects/infrastructure/ansible"; + python = pkgs.python39.withPackages (ps: with ps; [ mitogen ]); + in pkgs.mkShell { inherit name; - buildInputs = [ pkgs.python38.pkgs.pip pkgs.ansible_2_9 ]; + buildInputs = [ python pkgs.ansible_2_10 ]; shellHook = '' - export virtualenvs=$HOME/.local/share/virtualenvs - mkdir -p $virtualenvs - python -m venv $virtualenvs/ansible-mitogen - . $virtualenvs/ansible-mitogen/bin/activate - pip install mitogen==0.2.9 - export ANSIBLE_STRATEGY_PLUGINS=$virtualenvs/ansible-mitogen/lib/*/site-packages/ansible_mitogen/plugins + export ANSIBLE_STRATEGY_PLUGINS=${python}/lib/*/site-packages/ansible_mitogen/plugins export ANSIBLE_STRATEGY=mitogen_linear export PS1='\h (${name}) \W \$ ' cd '${project}' || exit 1 -- cgit v1.2.3