Copy nix files on init action in project-init

This commit is contained in:
coolneng 2022-11-30 15:08:48 +01:00
parent 36cffdcd00
commit 17465544df
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 3 additions and 2 deletions

View File

@ -52,11 +52,11 @@ fi
type=$1 type=$1
if [ "$type" = "git" ]; then if [ "$type" = "git" ]; then
copy_nix_files "flake" copy_nix_files "nix"
create_dir data create_dir data
create_dir src create_dir src
git_initialization git_initialization
direnv_integration "flake" direnv_integration "nix"
elif [ "$type" = "remote-git" ]; then elif [ "$type" = "remote-git" ]; then
touch README.org touch README.org
cp ~/Projects/devenv/LICENSE.md LICENSE.md cp ~/Projects/devenv/LICENSE.md LICENSE.md
@ -77,6 +77,7 @@ elif [ "$type" = "src" ]; then
direnv_integration "nix" direnv_integration "nix"
elif [ "$type" = "init" ]; then elif [ "$type" = "init" ]; then
touch .project touch .project
copy_nix_files "nix"
direnv_integration "nix" direnv_integration "nix"
elif [ "$type" = "nix-ld" ]; then elif [ "$type" = "nix-ld" ]; then
copy_nix_files "nix-ld" copy_nix_files "nix-ld"