fix[work]: fix aws,cdr commands, easier git switch in emacs

This commit is contained in:
Leon Schwarzäugl 2025-11-19 15:22:48 +01:00
parent 40e1adc402
commit 568350df9c
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
52 changed files with 4610 additions and 1364 deletions

View file

@ -0,0 +1,15 @@
{ name, nix-output-monitor, writeShellApplication, ... }:
writeShellApplication {
runtimeInputs = [ nix-output-monitor ];
inherit name;
text = ''
set -euo pipefail
[[ "$#" -ge 1 ]] \
|| { echo "usage: build <HOST>..." >&2; exit 1; }
HOSTS=()
for h in "$@"; do
HOSTS+=(".#nixosConfigurations.$h.config.system.build.toplevel")
done
nom build --no-link --print-out-paths --show-trace "''${HOSTS[@]}"
'';
}