···44 - id: check-hooks-apply
55 - id: check-useless-excludes
6677+ # NOTE: requires rustup to be preinstalled on NixOS, otherwise run into
88+ # some nix-ld type of issues when pre-commit attempts to download rustup
99+ # Also seems like it needs some kind of `cc` available for the build.
710 - repo: https://github.com/JohnnyMorganz/StyLua
811 rev: v0.20.0
912 hooks:
···3838 yadm submodule update --init
39394040 # Include "shared" git config in yadm repo
4141- yadm enter git config --local include.path ~/.config/yadm/.gitconfig
4141+ yadm gitconfig --local include.path ~/.config/yadm/.gitconfig
4242+4343+ # Install pre-commit hook, and tell it to point at custom config location
4444+ yadm enter \
4545+ ~/.config/yadm/hooks/pre-commit.pyz install \
4646+ --config ~/.config/yadm/.pre-commit-config.yaml
4747+4848+ # For flakes to work nicely, see flake.nix for details
4949+ # TODO: maybe could be done as part of home-manager setup instead...
5050+ ln -s "$(yadm rev-parse --git-dir)" ~/.config/.git
42514352 # Ensure yadm alt SSH config files are set with the right permissions
4453 chmod go-rw ~/.config/yadm/alt/.ssh/*