Move the scripts I commonly use into Nix files managed by Home Manager. Some, like `mounter` and `unmounter` are desktop-only, but this can be addressed in a future commit to create per-host scripts or desktop/non-desktop scripts. This commit also removes a number of unused scripts that are either included in packages like `git-extras` or aren't used.
21 lines
240 B
Nix
Executable file
21 lines
240 B
Nix
Executable file
{ 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";
|
|
'';
|
|
}
|