From 44f89a9c45c7458b466180b55400430d8a3a184a Mon Sep 17 00:00:00 2001 From: Daniel Frank Date: Sun, 10 Oct 2021 11:22:46 +0200 Subject: [PATCH] Make use of lorri to speed up shells --- .envrc | 2 +- shell.nix | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 shell.nix diff --git a/.envrc b/.envrc index c851120..fa0abf0 100644 --- a/.envrc +++ b/.envrc @@ -1,4 +1,4 @@ # Ensure ansible is available in path -use nix -p ansible +eval "$(lorri direnv)" export ANSIBLE_INVENTORY="$(expand_path inventory)" diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..487c17b --- /dev/null +++ b/shell.nix @@ -0,0 +1,10 @@ +{ pkgs ? import {} }: + +pkgs.mkShell { + buildInputs = [ + pkgs.ansible + + # keep this line if you use bash + pkgs.bashInteractive + ]; +}