Fix hooks

This commit is contained in:
2026-03-14 11:02:13 +00:00
parent a3a1d1c730
commit 51ab62ab2b

View File

@@ -73,5 +73,21 @@
cp "${../initial-configs/Enpass.conf}" "$DEST_FILE" cp "${../initial-configs/Enpass.conf}" "$DEST_FILE"
fi 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
'';
}; };
} }