System/update.sh

23 lines
675 B
Bash
Executable File

#!/usr/bin/env bash
set -exou pipefail
DIRECTORY=$(realpath "$(dirname "$0")")
# Update our sources first
# $DIRECTORY/sources/update-sources.sh
# Then update the flake
nix flake update
# Make sure we still build our systems
# aarch64 systems are excluded for now due to slowness
nix build .#nixosConfigurations.oracles.config.system.build.toplevel
nix build .#nixosConfigurations.pendulum.config.system.build.toplevel
# nix build .#nixosConfigurations.tounge.config.system.build.toplevel
nix build .#nixosConfigurations.perception.config.system.build.toplevel
# nix build .#nixosConfigurations.fusion.config.system.build.toplevel
# Collect garbage
nix-collect-garbage