From 71460300742eb58ee00e5670cac8a93dac580f60 Mon Sep 17 00:00:00 2001 From: rope Date: Mon, 1 Jun 2026 09:34:29 +0100 Subject: [PATCH] fix auto-upgrade running before flake.lock update Remove unnecessary --impure from update alias, shift auto-upgrade from 04:15 to 05:15 so it runs after the Forgejo bot updates flake.lock at 04:00 UTC (05:00 BST). Co-Authored-By: Claude Opus 4.6 --- common.nix | 2 +- hosts/FredOS-Mediaserver.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common.nix b/common.nix index 682a6ec..d7a5dbe 100644 --- a/common.nix +++ b/common.nix @@ -98,7 +98,7 @@ # Shell aliases (work in both bash and fish) environment.shellAliases = { - update = "bash -c 'set -o pipefail && OLD_SYSTEM=$(readlink /run/current-system) && sudo nixos-rebuild switch $@ --impure --refresh --flake git+https://forg.gregersen.it/rope/nixos -L --log-format internal-json 2>&1 | nom --json && nvd diff $OLD_SYSTEM /run/current-system && (command -v record-update &>/dev/null && record-update $OLD_SYSTEM /run/current-system || true)' --"; + update = "bash -c 'set -o pipefail && OLD_SYSTEM=$(readlink /run/current-system) && sudo nixos-rebuild switch $@ --refresh --flake git+https://forg.gregersen.it/rope/nixos -L --log-format internal-json 2>&1 | nom --json && nvd diff $OLD_SYSTEM /run/current-system && (command -v record-update &>/dev/null && record-update $OLD_SYSTEM /run/current-system || true)' --"; clean = "sudo nix-collect-garbage -d"; ll = "ls -alh"; clear = "command clear"; diff --git a/hosts/FredOS-Mediaserver.nix b/hosts/FredOS-Mediaserver.nix index f9f3c95..03ada0a 100644 --- a/hosts/FredOS-Mediaserver.nix +++ b/hosts/FredOS-Mediaserver.nix @@ -39,7 +39,7 @@ system.autoUpgrade = { enable = true; flake = "git+https://forg.gregersen.it/rope/nixos"; - dates = "04:15"; + dates = "05:15"; allowReboot = true; };