fix: allow nixos-upgrade to read user-owned flake repo as root
Add a nixosUpgradeGitSafeDir activation script that writes the nix-config
path to /root/.gitconfig as a safe.directory entry. The autoUpgrade service
runs as root but the repo is owned by ewan, which git 2.35.2+ refuses to
open without this (CVE-2022-24765 mitigation).