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. # 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}' --"; localUpdate = "bash -c 'set -o pipefail && OLD_SYSTEM=$(readlink /run/current-system) && sudo nixos-rebuild switch $@ --refresh --flake ${flake} -L${buildLog} && ${post}' --";

View file

@ -257,6 +257,8 @@ in
hl.env("QT_QPA_PLATFORM", "wayland;xcb") hl.env("QT_QPA_PLATFORM", "wayland;xcb")
hl.env("SDL_VIDEODRIVER", "wayland") hl.env("SDL_VIDEODRIVER", "wayland")
hl.env("_JAVA_AWT_WM_NONREPARENTING", "1") hl.env("_JAVA_AWT_WM_NONREPARENTING", "1")
-- hyprshot save dir; it mkdir -p's this itself. `update` wipes it.
hl.env("HYPRSHOT_DIR", "/home/fred/Pictures/Screenshots")
${lib.optionalString isGaming '' ${lib.optionalString isGaming ''
-- GPU pinning Navi 22 is card1 on the dual-GPU gaming box. -- GPU pinning Navi 22 is card1 on the dual-GPU gaming box.
hl.env("AQ_DRM_DEVICES", "/dev/dri/card1") hl.env("AQ_DRM_DEVICES", "/dev/dri/card1")