From 7f080454078a1fe20100bfcef153d91a48ff48d6 Mon Sep 17 00:00:00 2001 From: coolneng Date: Sun, 4 Sep 2022 08:44:32 +0200 Subject: [PATCH] Add nix-ld option to project-init --- scripts/.local/share/scripts/project-init | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/.local/share/scripts/project-init b/scripts/.local/share/scripts/project-init index 84cd100..0d65f88 100755 --- a/scripts/.local/share/scripts/project-init +++ b/scripts/.local/share/scripts/project-init @@ -12,6 +12,8 @@ usage() { 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 +60,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