screenshots: save to ~/Pictures/Screenshots, update wipes it
This commit is contained in:
parent
3651c7ee2c
commit
a799be3ae2
2 changed files with 3 additions and 1 deletions
|
|
@ -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}' --";
|
||||
|
|
|
|||
|
|
@ -257,6 +257,8 @@ in
|
|||
hl.env("QT_QPA_PLATFORM", "wayland;xcb")
|
||||
hl.env("SDL_VIDEODRIVER", "wayland")
|
||||
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 ''
|
||||
-- GPU pinning — Navi 22 is card1 on the dual-GPU gaming box.
|
||||
hl.env("AQ_DRM_DEVICES", "/dev/dri/card1")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue