mirror of
https://github.com/blahai/nyx.git
synced 2025-02-23 04:55:09 +00:00
envrc
This commit is contained in:
parent
1266aec983
commit
14843ef945
2 changed files with 16 additions and 1 deletions
13
.envrc
Normal file
13
.envrc
Normal file
|
@ -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
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -2,3 +2,5 @@
|
||||||
result
|
result
|
||||||
# for 'nixos-rebuild build-vm' images
|
# for 'nixos-rebuild build-vm' images
|
||||||
*.qcow2
|
*.qcow2
|
||||||
|
# direnv
|
||||||
|
.direnv/
|
||||||
|
|
Loading…
Add table
Reference in a new issue