If You do not want to add remote after each pull/push:
default_remote = "user@ssh.pijul.com:repo_name
[hooks]
record = [ "zig fmt ." ]
Hooks can be run before record, so files will be formatted before commit.
Update 2022-10-02
I just found this discussion on Nest.