Make use of lorri to speed up shells
This commit is contained in:
parent
fa930dfb62
commit
44f89a9c45
2 changed files with 11 additions and 1 deletions
2
.envrc
2
.envrc
|
@ -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
10
shell.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pkgs.ansible
|
||||
|
||||
# keep this line if you use bash
|
||||
pkgs.bashInteractive
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue