Change location of nix files in project-init
This commit is contained in:
parent
e66228c107
commit
7d99784249
|
@ -13,13 +13,14 @@ usage() {
|
||||||
|
|
||||||
copy_nix_files() {
|
copy_nix_files() {
|
||||||
if [ "$1" = "flake" ]; then
|
if [ "$1" = "flake" ]; then
|
||||||
cp ~/Documents/IT/flake-template.nix flake.nix
|
cp ~/Projects/devenv/flake-template.nix flake.nix
|
||||||
elif [ "$1" = "nix-ld" ]; then
|
elif [ "$1" = "nix-ld" ]; then
|
||||||
cp ~/Documents/IT/nix-ld.nix shell.nix
|
cp ~/Projects/devenv/nix-ld.nix shell.nix
|
||||||
elif [ "$1" = "datasci" ]; then
|
elif [ "$1" = "datasci" ]; then
|
||||||
cp ~/Projects/devenv/python-data-science.nix shell.nix
|
cp ~/Projects/devenv/python-data-science.nix shell.nix
|
||||||
|
else
|
||||||
|
cp ~/Projects/devenv/shell.nix .
|
||||||
fi
|
fi
|
||||||
cp ~/Documents/IT/shell.nix .
|
|
||||||
}
|
}
|
||||||
|
|
||||||
git_initialization() {
|
git_initialization() {
|
||||||
|
@ -57,7 +58,7 @@ if [ "$type" = "git" ]; then
|
||||||
direnv_integration "flake"
|
direnv_integration "flake"
|
||||||
elif [ "$type" = "remote-git" ]; then
|
elif [ "$type" = "remote-git" ]; then
|
||||||
touch README.org
|
touch README.org
|
||||||
cp ~/Documents/IT/gpl-3.0.md LICENSE.md
|
cp ~/Projects/devenv/LICENSE.md LICENSE.md
|
||||||
copy_nix_files "flake"
|
copy_nix_files "flake"
|
||||||
create_dir data
|
create_dir data
|
||||||
create_dir src
|
create_dir src
|
||||||
|
@ -77,7 +78,7 @@ elif [ "$type" = "nix-ld" ]; then
|
||||||
copy_nix_files "nix-ld"
|
copy_nix_files "nix-ld"
|
||||||
direnv_integration "nix"
|
direnv_integration "nix"
|
||||||
elif [ "$type" = "datasci" ]; then
|
elif [ "$type" = "datasci" ]; then
|
||||||
copy_nix_files "nix"
|
copy_nix_files "datasci"
|
||||||
create_dir data
|
create_dir data
|
||||||
touch .project
|
touch .project
|
||||||
direnv_integration "nix"
|
direnv_integration "nix"
|
||||||
|
|
Loading…
Reference in New Issue