Add build-modules.yml for Nix module dry-run workflow
Some checks are pending
Build Nix modules (dry-run) / build-modules (push) Waiting to run
Some checks are pending
Build Nix modules (dry-run) / build-modules (push) Waiting to run
This commit is contained in:
parent
1a0b4a3a53
commit
dca2e4ffbf
2 changed files with 23 additions and 0 deletions
28
dry_run.zsh
Executable file
28
dry_run.zsh
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
export NIX_CONFIG="experimental-features = nix-command flakes"
|
||||
|
||||
echo "=== nix --version ==="
|
||||
nix --version
|
||||
echo
|
||||
|
||||
configs=(
|
||||
"nixos-local-wireguard-server"
|
||||
"nixos-blank"
|
||||
"nixos-songsheet"
|
||||
"nixos-database"
|
||||
"nixos-forgejo"
|
||||
"nixos-teamspeak"
|
||||
"nixos-traefik"
|
||||
"nixos-build-machine"
|
||||
)
|
||||
|
||||
if [[ -n "$1" ]]; then
|
||||
configs=("$1")
|
||||
fi
|
||||
|
||||
for config in "${configs[@]}"; do
|
||||
echo "=== Dry-run: $config ==="
|
||||
nix build --dry-run ".#nixosConfigurations.${config}.config.system.build.toplevel" || true
|
||||
echo
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue