dotfiles/common/users/homeModules/scripts/flakeify.sh
2025-06-11 14:14:38 -04:00

8 lines
199 B
Bash

if [ ! -e flake.nix ]; then
nix flake new -t github:sadan4/direnvTemplate .
direnv allow
elif [ ! -e .envrc ]; then
echo "use flake" > .envrc
direnv allow
fi
${EDITOR:-vim} flake.nix