diff --git a/scripts/.local/share/scripts/project-init b/scripts/.local/share/scripts/project-init index 902c995..34a54b7 100755 --- a/scripts/.local/share/scripts/project-init +++ b/scripts/.local/share/scripts/project-init @@ -18,6 +18,7 @@ type=$1 if [ "$type" = "git" ]; then git init cp ~/Documents/IT/shell.nix . + cp ~/Documents/IT/flake-template.nix.nix flake.nix mkdir src data git add ./* git commit -m "Initial commit" @@ -28,6 +29,7 @@ elif [ "$type" = "remote-git" ]; then touch README.org cp ~/Documents/IT/gpl-3.0.md LICENSE.md cp ~/Documents/IT/shell.nix . + cp ~/Documents/IT/flake-template.nix.nix flake.nix mkdir src tests data git add ./* git commit -m "Initial commit" @@ -39,7 +41,7 @@ elif [ "$type" = "doc" ]; then elif [ "$type" = "src" ]; then cp ~/Documents/IT/shell.nix . mkdir src data - echo "use flake" >.envrc + echo "use nix" >.envrc direnv allow else usage