screenshots: save to ~/Pictures/Screenshots, update wipes it

This commit is contained in:
rope 2026-08-20 19:42:06 +01:00
parent 3651c7ee2c
commit a799be3ae2
2 changed files with 3 additions and 1 deletions

View file

@ -58,7 +58,7 @@ let
}
'';
post = "nvd diff $OLD_SYSTEM /run/current-system && (command -v record-update &>/dev/null && record-update $OLD_SYSTEM /run/current-system || true)";
post = "nvd diff $OLD_SYSTEM /run/current-system && (command -v record-update &>/dev/null && record-update $OLD_SYSTEM /run/current-system || true); rm -f \"$HOME\"/Pictures/Screenshots/*";
# The server evaluates and builds for itself.
localUpdate = "bash -c 'set -o pipefail && OLD_SYSTEM=$(readlink /run/current-system) && sudo nixos-rebuild switch $@ --refresh --flake ${flake} -L${buildLog} && ${post}' --";