Add flake template to project-init

This commit is contained in:
coolneng 2021-10-06 10:25:04 +02:00
parent 9ffb3d2d10
commit ba20fdd8ee
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 3 additions and 1 deletions

View File

@ -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