Combine scripts and custom packages
All checks were successful
/ check (push) Successful in 1m40s

This commit is contained in:
Oliver Davies 2025-07-10 22:50:41 +01:00
parent 7780eca7a9
commit 5341b761ad
15 changed files with 29 additions and 38 deletions

21
packages/create-script.nix Executable file
View file

@ -0,0 +1,21 @@
{ pkgs }:
pkgs.writeShellApplication {
name = "create-script";
text = ''
cat > "$1" << EOF
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
EOF
chmod +x "$1"
$EDITOR "$1";
'';
}