From 14843ef94584d38d1d351f2daf9870eb5b99f336 Mon Sep 17 00:00:00 2001 From: blahai Date: Wed, 22 Jan 2025 19:48:37 +0200 Subject: [PATCH] envrc --- .envrc | 13 +++++++++++++ .gitignore | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..1da74d8 --- /dev/null +++ b/.envrc @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# only continue if the user has the nix version of direnv +if has nix_direnv_version; then + # we want to track changes here, and reaload the environment + # we choose these files because they are the ones that are most likely + # to have made a change that required a shell reaload + watch_dir modules/flake/programs + watch_file modules/flake/args.nix + + # now we want to load the flake environment + use flake +fi diff --git a/.gitignore b/.gitignore index 8d0c87a..5c03704 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ # nix things result # for 'nixos-rebuild build-vm' images -*.qcow2 +*.qcow2 +# direnv +.direnv/