Use Nix instead of virtualenv

This commit is contained in:
Paul Brinkmeier 2022-09-15 04:57:37 +02:00
parent a86b3e6a43
commit c7bcf2cddf
2 changed files with 15 additions and 2 deletions

View File

@ -2,10 +2,10 @@
## Ansible Control Node Setup
In a Python 3 environment (perhaps a venv):
Run in repository root to use `ansible-*` commands:
```
pip install -r requirements.txt
nix run -c $SHELL
```
## `misc.yaml`

13
default.nix Normal file
View File

@ -0,0 +1,13 @@
{
pkgs ? import <nixpkgs> {}
}:
let
paths = with pkgs; [
ansible
ansible-lint
];
in
pkgs.buildEnv {
name = "infrastructure-env";
paths = paths;
}