From e672a99d95b6641fb2dd51d7bef9ae322f5639e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rivera?= Date: Sun, 26 Jul 2026 15:01:03 +0200 Subject: [PATCH] snapshot pre-autoupdate-2026-07-26T13-01-03Z --- modules/utilities/autoUpdate.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/utilities/autoUpdate.nix b/modules/utilities/autoUpdate.nix index 08d6e50..a81e3e8 100644 --- a/modules/utilities/autoUpdate.nix +++ b/modules/utilities/autoUpdate.nix @@ -107,7 +107,6 @@ curl libnotify nix - sudo ]; text = '' @@ -129,7 +128,7 @@ # 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 ${pkgs.nixos-rebuild}/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