summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-05-05 17:53:35 +0200
committersils <sils@sils.li>2023-05-05 17:53:35 +0200
commit9c5aceaba5d00d93ccd67bcd203b9695e8fa4cc6 (patch)
treed8b330c1bbadae24c65f51cc104d849b8fb12cb7
parentFeat(flake.nix): Add devShell output (diff)
downloadnix-config-9c5aceaba5d00d93ccd67bcd203b9695e8fa4cc6.zip
Feat(direnv): Use direnv
Diffstat (limited to '')
-rw-r--r--.envrc5
-rw-r--r--.gitignore1
2 files changed, 6 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..a9c7e4e
--- /dev/null
+++ b/.envrc
@@ -0,0 +1,5 @@
+use flake
+if on_git_branch; then
+  echo && git status --short --branch &&
+  echo && git fetch --verbose
+fi
diff --git a/.gitignore b/.gitignore
index 2346acd..4cadecd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 result
 hardware-configuration.nix
+.direnv