From 7a57f2c332262bf2ab6b84135812db9775a0ab24 Mon Sep 17 00:00:00 2001 From: Tomas Rivera Date: Mon, 18 May 2026 09:57:37 +0200 Subject: [PATCH] snapshot pre-autoupdate-2026-05-18T07-57-37Z --- hostsModules/laptop/scripts/autoUpdate.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hostsModules/laptop/scripts/autoUpdate.nix b/hostsModules/laptop/scripts/autoUpdate.nix index f4359b9..bace09e 100644 --- a/hostsModules/laptop/scripts/autoUpdate.nix +++ b/hostsModules/laptop/scripts/autoUpdate.nix @@ -29,7 +29,7 @@ pkgs.writeShellApplication { # update lock only nix flake update --flake "$FLAKE_DIR" - if sudo /run/current/system/sw/bin/nixos-rebuild switch --flake "$FLAKE" 2> "$ERROR_FILE"; then # use /run/.../bin/ uses the sudoless rule + if sudo /run/current-system/sw/bin/nixos-rebuild switch --flake "$FLAKE" 2> "$ERROR_FILE"; then # use /run/.../bin/ uses the sudoless rule if ! git -C "$FLAKE_DIR" diff --quiet -- flake.lock; then git -C "$FLAKE_DIR" add flake.lock