1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 14:50:40 +02:00

fix: add device overrides for new disko partlabel stuff

This commit is contained in:
oddlama 2024-03-02 16:06:15 +01:00
parent 5aad6c3a84
commit aab790065a
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
8 changed files with 110 additions and 20 deletions

View file

@ -264,9 +264,13 @@
name = "build";
text = ''
set -euo pipefail
[[ "$#" -eq 1 ]] \
|| { echo "usage: build <host>" >&2; exit 1; }
nom build --no-link --print-out-paths --show-trace .#nodes."$1".config.system.build.toplevel
[[ "$#" -ge 1 ]] \
|| { echo "usage: build <HOST>..." >&2; exit 1; }
HOSTS=()
for h in "$@"; do
HOSTS+=(".#nodes.$h.config.system.build.toplevel")
done
nom build --no-link --print-out-paths --show-trace "''${HOSTS[@]}"
'';
};
help = "Build a host configuration";