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 <noreply@anthropic.com>
This commit is contained in:
parent
75c3184dba
commit
7146030074
2 changed files with 2 additions and 2 deletions
|
|
@ -98,7 +98,7 @@
|
||||||
|
|
||||||
# Shell aliases (work in both bash and fish)
|
# Shell aliases (work in both bash and fish)
|
||||||
environment.shellAliases = {
|
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";
|
clean = "sudo nix-collect-garbage -d";
|
||||||
ll = "ls -alh";
|
ll = "ls -alh";
|
||||||
clear = "command clear";
|
clear = "command clear";
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
system.autoUpgrade = {
|
system.autoUpgrade = {
|
||||||
enable = true;
|
enable = true;
|
||||||
flake = "git+https://forg.gregersen.it/rope/nixos";
|
flake = "git+https://forg.gregersen.it/rope/nixos";
|
||||||
dates = "04:15";
|
dates = "05:15";
|
||||||
allowReboot = true;
|
allowReboot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue