[includeIf "gitdir:~/work/"]
path = work.gitconfig
This config should load the config work.gitignore when in a repo which is a subdirectory to ~/work, and it works well on the host. However, it does not work when using git inside a distrobox for some reason.