System/update.sh

22 lines
611 B
Bash
Raw Normal View History

2023-05-14 19:25:28 -04:00
#!/usr/bin/env bash
set -eou 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
nix build .#nixosConfigurations.oracles.config.system.build.toplevel
nix build .#nixosConfigurations.matrix.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