Make use of lorri to speed up shells

This commit is contained in:
Daniel Frank 2021-10-10 11:22:46 +02:00
parent fa930dfb62
commit 44f89a9c45
Signed by: tokudan
GPG key ID: 063CCCAD04182D32
2 changed files with 11 additions and 1 deletions

2
.envrc
View file

@ -1,4 +1,4 @@
# Ensure ansible is available in path
use nix -p ansible
eval "$(lorri direnv)"
export ANSIBLE_INVENTORY="$(expand_path inventory)"

10
shell.nix Normal file
View file

@ -0,0 +1,10 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = [
pkgs.ansible
# keep this line if you use bash
pkgs.bashInteractive
];
}