From 6eedbc688c986298488ee8c4bd5d37d848c309fb Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Thu, 17 Oct 2024 11:39:00 +0200 Subject: [PATCH] fix: make update flake more reliable --- hosts/lambdaos/configuration.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/lambdaos/configuration.nix b/hosts/lambdaos/configuration.nix index 6a38afa..1333cf9 100644 --- a/hosts/lambdaos/configuration.nix +++ b/hosts/lambdaos/configuration.nix @@ -326,6 +326,7 @@ script = '' [[ ! -d '/root/nixconf' ]] && cd /root && git clone git@github.com:itepastra/nixconf cd /root/nixconf + git reset --hard origin/main git pull nix flake update --commit-lock-file /root/nixconf nixos-rebuild boot --flake .