diff options
Diffstat (limited to '.config/nixpkgs/shells/ansible.nix')
-rw-r--r-- | .config/nixpkgs/shells/ansible.nix | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/.config/nixpkgs/shells/ansible.nix b/.config/nixpkgs/shells/ansible.nix index 5da5e38..3f6de79 100644 --- a/.config/nixpkgs/shells/ansible.nix +++ b/.config/nixpkgs/shells/ansible.nix @@ -1,10 +1,17 @@ -with import <nixpkgs> { }; +let -let project = "${builtins.getEnv "HOME"}/Shares/Projects/infrastructure/ansible"; + # nix-shell -E 'import (builtins.fetchurl "$url")' + + name = "nix-shell.ansible"; + pkgs = import <nixpkgs> { }; + project = "${builtins.getEnv "HOME"}/Shares/Projects/infrastructure/ansible"; + +in pkgs.mkShell { + + inherit name; + + buildInputs = with pkgs; [ python38.pkgs.pip ansible_2_9 ]; -in mkShell rec { - name = "ansible-mitogen"; - buildInputs = [ python38.pkgs.pip ansible_2_9 ]; shellHook = '' export virtualenvs=$HOME/.local/share/virtualenvs mkdir -p $virtualenvs @@ -18,3 +25,4 @@ in mkShell rec { ssh -T git@github.com ''; } + |