{ config, lib, pkgs, ... }: # Declarative game file mods. Define per-game file replacements keyed by # Steam App ID. The module produces a `game-mods-apply` script that # discovers the game install directory (and Proton prefix) from Steam's # own library metadata, so it survives drive moves and library # reconfigurations. # # A systemd timer re-applies mods daily so Steam verify/update restores # don't silently undo them. # # Each file op picks two axes: # mode = "replace" (default, skip if absent) # | "create" (mkdir + write, idempotent) # | "init" (create if absent, leave alone otherwise — for # files the game writes back to) # location = "install" (default, steamapps/common/