From 51ab62ab2baac61ab9de57fc966e0cb282e92443 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 14 Mar 2026 11:02:13 +0000 Subject: [PATCH] Fix hooks --- home/hooks.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/home/hooks.nix b/home/hooks.nix index 2914ab1..1d884f4 100644 --- a/home/hooks.nix +++ b/home/hooks.nix @@ -73,5 +73,21 @@ cp "${../initial-configs/Enpass.conf}" "$DEST_FILE" fi ''; + setupDefaultWallpaper = lib.hm.dag.entryAfter ["writeBoundary"] '' + if [[ -v DRY_RUN ]]; then + echo "Dry run: Would copy wallpaper and initialise colour scheme if not set" + exit + fi + + WALLPAPER_FILE="$HOME/.config/station/current/background" + + if [ ! -f "$WALLPAPER_FILE" ]; then + mkdir -p "$(dirname "$WALLPAPER_FILE")" + ln -nsf ${../default_wallpaper.png} "$WALLPAPER_FILE" + fi + if [ ! -f "$HOME/.config/wal/colors" ]; then + ${pkgs.pywal16}/bin/wal -i "$WALLPAPER_FILE" + fi + ''; }; }