From 35d6c2c70824cf77ef2216889cc9730b622f5ac1 Mon Sep 17 00:00:00 2001 From: Emile Date: Fri, 13 Sep 2024 15:04:06 +0200 Subject: big push --- update-host.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 update-host.sh (limited to 'update-host.sh') diff --git a/update-host.sh b/update-host.sh new file mode 100755 index 0000000..a70b053 --- /dev/null +++ b/update-host.sh @@ -0,0 +1,9 @@ +HOSTNAME="corrino" + +HYDRA=https://hydra.emile.space/job/hefe/builds/nixosConfigurations.${HOSTNAME}/latest-finished +STORE_PATH="$(curl -sL -H "Accept: application/json" "${HYDRA}" | jq -r ".buildoutputs.out.path")" + +nix copy --from "https://nix-cache.emile.space" "${STORE_PATH}" +nix-env -p "/nix/var/nix/profiles/system" --set "${STORE_PATH}" +/nix/var/nix/profiles/system/bin/switch-to-configuration boot + -- cgit 1.4.1