mirror of
https://codeberg.org/polyteknisk-radiogruppe/the_prg_server_configuration.git
synced 2026-06-13 18:28:55 +02:00
28 lines
531 B
Bash
Executable file
28 lines
531 B
Bash
Executable file
#!/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
|