From 7669aabdeb82af3ca75d1cecaf66d669725a7f3e Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 30 Nov 2022 15:08:48 +0100 Subject: [PATCH] Copy nix files on init action in project-init --- scripts/.local/share/scripts/project-init | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/.local/share/scripts/project-init b/scripts/.local/share/scripts/project-init index 7995d20..18918f8 100755 --- a/scripts/.local/share/scripts/project-init +++ b/scripts/.local/share/scripts/project-init @@ -52,11 +52,11 @@ fi type=$1 if [ "$type" = "git" ]; then - copy_nix_files "flake" + copy_nix_files "nix" create_dir data create_dir src git_initialization - direnv_integration "flake" + direnv_integration "nix" elif [ "$type" = "remote-git" ]; then touch README.org cp ~/Projects/devenv/LICENSE.md LICENSE.md @@ -77,6 +77,9 @@ elif [ "$type" = "src" ]; then direnv_integration "nix" elif [ "$type" = "init" ]; then touch .project + if [ ! -f shell.nix ]; then + copy_nix_files "nix" + fi direnv_integration "nix" elif [ "$type" = "nix-ld" ]; then copy_nix_files "nix-ld"