From 093a084e48321a13db3b8fd839538e4bc20dc0b3 Mon Sep 17 00:00:00 2001 From: Tomas Rivera Date: Fri, 15 May 2026 14:51:50 +0200 Subject: [PATCH] flake: autoupdate 2026-05-15T12-51-46Z --- hostsModules/laptop/scripts/autoUpdate.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hostsModules/laptop/scripts/autoUpdate.nix b/hostsModules/laptop/scripts/autoUpdate.nix index cd80e8f..08411b8 100644 --- a/hostsModules/laptop/scripts/autoUpdate.nix +++ b/hostsModules/laptop/scripts/autoUpdate.nix @@ -25,12 +25,13 @@ pkgs.writeShellApplication { nix flake update --flake "$FLAKE_DIR" if sudo nixos-rebuild switch --flake "$FLAKE"; then + git -C "$FLAKE_DIR" restore . git -C "$FLAKE_DIR" add flake.lock git -C "$FLAKE_DIR" commit -m "flake: autoupdate $TIME" git -C "$FLAKE_DIR" push notify-send "Flake autoupdate" "Rebuild OK" - matrix-commander-rs -m "Flake rebuild OK" + matrix-commander-rs -m "Flake rebuild succesfull.
@notificationbot_0000" --html -r "\!7j-78_02dHROeLj4Ns8F12eo4IiZGv4zNsQ_1-WlyIU" else notify-send -u critical "Flake autoupdate" "FAILED" matrix-commander-rs -m "Flake rebuild FAILED"