chore: change to native nix scripts

This commit is contained in:
Leon Schwarzäugl 2026-03-06 00:32:47 +01:00
parent 80c08a6d19
commit 7ad9d84109
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
42 changed files with 2071 additions and 2102 deletions

View file

@ -1,5 +1,13 @@
{ self, name, writeShellApplication }:
{ name, writeShellApplication, ... }:
writeShellApplication {
inherit name;
text = builtins.readFile "${self}/files/scripts/${name}.sh";
text = ''
set -euo pipefail
if [ ! -d "$(pwd)/.git" ]; then
git init
fi
nix flake init --template "$FLAKE"#"$1"
direnv allow
'';
}