.dotfiles/pkgs/flake/swarsel-build/default.nix
Leon Schwarzäugl ec6ae25e9b
Some checks failed
Flake check / Check flake (push) Has been cancelled
fix[work]: fix aws,cdr commands, easier git switch in emacs
2025-11-19 21:49:30 +01:00

15 lines
447 B
Nix

{ 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[@]}"
'';
}