diff --git a/scripts/.local/share/scripts/project-init b/scripts/.local/share/scripts/project-init index 84cd100..3f523b1 100755 --- a/scripts/.local/share/scripts/project-init +++ b/scripts/.local/share/scripts/project-init @@ -6,12 +6,15 @@ usage() { echo "type remote-git: VCS project with README, LICENSE and tests" echo "type src: Simple coding project" echo "type doc: Assignment" + echo "type nix-ld: Run unpatched programs with Nix" exit 1 } copy_nix_files() { if [ "$1" = "flake" ]; then cp ~/Documents/IT/flake-template.nix flake.nix + elif [ "$1" = "nix-ld" ]; then + cp ~/Documents/IT/nix-ld.nix shell.nix fi cp ~/Documents/IT/shell.nix . } @@ -58,6 +61,9 @@ elif [ "$type" = "src" ]; then mkdir src data touch .project direnv_integration "nix" +elif [ "$type" = "nix-ld" ]; then + copy_nix_files "nix-ld" + direnv_integration "nix" else usage fi