aboutsummaryrefslogtreecommitdiff
path: root/.config/nixpkgs
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2023-01-17 18:15:42 -0500
committertdro <tdro@users.noreply.github.com>2023-01-17 18:15:42 -0500
commit7fc49f097f95f65ce2f23d9cf250e9e3a671ce8c (patch)
tree30032b322fc6b814a9189846256a7f4a860fe507 /.config/nixpkgs
parent1ef84adc4cbd9107479b56eff62afd9811a23228 (diff)
downloaddotfiles-7fc49f097f95f65ce2f23d9cf250e9e3a671ce8c.tar.gz
dotfiles-7fc49f097f95f65ce2f23d9cf250e9e3a671ce8c.tar.bz2
dotfiles-7fc49f097f95f65ce2f23d9cf250e9e3a671ce8c.zip
.config/nixpkgs/shells/ansible: Lock
Diffstat (limited to '.config/nixpkgs')
-rw-r--r--.config/nixpkgs/shells/ansible.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/.config/nixpkgs/shells/ansible.nix b/.config/nixpkgs/shells/ansible.nix
index 3f6de79..33f0836 100644
--- a/.config/nixpkgs/shells/ansible.nix
+++ b/.config/nixpkgs/shells/ansible.nix
@@ -3,26 +3,30 @@ let
# nix-shell -E 'import (builtins.fetchurl "$url")'
name = "nix-shell.ansible";
- pkgs = import <nixpkgs> { };
+
+ pkgs = import (builtins.fetchTarball {
+ url = "https://releases.nixos.org/nixos/21.11/nixos-21.11.336020.2128d0aa28e/nixexprs.tar.xz";
+ sha256 = "0w8plbxms0di6gnh0k2yhj0pgxzxas7g5x0m01zjzixf16i2bapj";
+ }) { };
+
project = "${builtins.getEnv "HOME"}/Shares/Projects/infrastructure/ansible";
in pkgs.mkShell {
inherit name;
- buildInputs = with pkgs; [ python38.pkgs.pip ansible_2_9 ];
+ buildInputs = [ pkgs.python38.pkgs.pip pkgs.ansible_2_9 ];
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==0.2.9
- export ANSIBLE_STRATEGY_PLUGINS=$virtualenvs/ansible-mitogen/lib/python3.8/site-packages/ansible_mitogen/plugins
+ pip install mitogen==0.2.9
+ export ANSIBLE_STRATEGY_PLUGINS=$virtualenvs/ansible-mitogen/lib/*/site-packages/ansible_mitogen/plugins
export ANSIBLE_STRATEGY=mitogen_linear
export PS1='\h (${name}) \W \$ '
cd '${project}' || exit 1
ssh -T git@github.com
'';
}
-