Update nix-develop and nix-direnv

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-02-21 09:19:44 +00:00
parent 75a0a59c3d
commit 0235b1146f
5 changed files with 64 additions and 10 deletions

View File

@@ -35,7 +35,16 @@
done
if [[ -z "$devshell" ]]; then
if [ ! -f flake.nix ]; then cp "${./template.nix}" flake.nix; fi
if [ ! -f flake.nix ]; then
cp "${./template.nix}" flake.nix
chmod 755 flake.nix
fi
if [ ! treefmt.nix ]; then
cp "${./treefmt.nix}" treefmt.nix
chmod 755 treefmt.nix
fi
nix develop -c "$SHELL"
else
nix develop self#"$devshell" -c "$SHELL"