mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-21 03:37:01 -04:00
direnv
This commit is contained in:
parent
7dd6913f08
commit
0a7223bd6b
6 changed files with 176 additions and 101 deletions
7
common/users/homeModules/scripts/flakeify.sh
Normal file
7
common/users/homeModules/scripts/flakeify.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
if [ ! -e flake.nix ]; then
|
||||
nix flake new -t github:nix-community/nix-direnv .
|
||||
elif [ ! -e .envrc ]; then
|
||||
echo "use flake" > .envrc
|
||||
direnv allow
|
||||
fi
|
||||
${EDITOR:-vim} flake.nix
|
Loading…
Add table
Add a link
Reference in a new issue