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:
parent
5aad6c3a84
commit
aab790065a
8 changed files with 110 additions and 20 deletions
10
flake.nix
10
flake.nix
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue