My super cool nixos dots yay!
1# vim: ft=bash:
2
3# direnv configuration (see: https://direnv.net/)
4
5if ! on_git_branch; then
6 echo "WARNING: Not in a git repo, it is recommended to keep track of your flake with git"
7fi
8
9if has nix; then
10 use flake
11
12 # https://github.com/nix-community/nix-direnv
13 if ! has nix_direnv_version || ! nix_direnv_version 2.0.0; then
14 echo "WARNING: nix-direnv version 2.0.0 or higher is recommended"
15 else
16 watch_file *.nix .*.nix
17 fi
18
19else
20 echo "WARNING: nix not found"
21fi