Updater script
This commit is contained in:
parent
90a1cfd860
commit
631bf8c848
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -exou pipefail
|
||||
set -eou pipefail
|
||||
|
||||
DIRECTORY=$(realpath "$(dirname "$0")")
|
||||
|
||||
|
@ -26,3 +26,4 @@ jq --null-input \
|
|||
--arg hash "$LAYMAN_HASH" \
|
||||
'{"rev": $rev, "hash": $hash}' \
|
||||
> $DIRECTORY/layman.json
|
||||
echo "layman now at $LAYMAN_REV"
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue