mirror of
https://github.com/Mic92/nixos-wiki-infra.git
synced 2024-11-22 16:24:02 +01:00
16 lines
446 B
Bash
Executable File
16 lines
446 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euxo pipefail
|
|
|
|
nixBuild() {
|
|
if command -v nom -v &>/dev/null; then
|
|
nom build "$@"
|
|
else
|
|
nix build "$@"
|
|
fi
|
|
}
|
|
nixBuild .#checks.x86_64-linux.test .#nixosConfigurations.nixos-wiki-nixos-org.config.system.build.toplevel -L
|
|
if ! nixos-rebuild switch --flake .#nixos-wiki-nixos-org --target-host root@wiki.nixos.org; then
|
|
nixos-rebuild switch --flake .#nixos-wiki-nixos-org --target-host root@wiki.nixos.org
|
|
fi
|