mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
15 lines
447 B
Nix
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[@]}"
|
|
'';
|
|
}
|