Updater script

This commit is contained in:
Nathan McCarty 2023-05-14 19:25:28 -04:00
parent 90a1cfd860
commit 631bf8c848
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
2 changed files with 23 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -exou pipefail set -eou pipefail
DIRECTORY=$(realpath "$(dirname "$0")") DIRECTORY=$(realpath "$(dirname "$0")")
@ -26,3 +26,4 @@ jq --null-input \
--arg hash "$LAYMAN_HASH" \ --arg hash "$LAYMAN_HASH" \
'{"rev": $rev, "hash": $hash}' \ '{"rev": $rev, "hash": $hash}' \
> $DIRECTORY/layman.json > $DIRECTORY/layman.json
echo "layman now at $LAYMAN_REV"

21
update.sh Executable file
View File

@ -0,0 +1,21 @@
#!/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