My nix-darwin and NixOS config
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(server): add git config for root user

The nixos-upgrade service runs as root and needs a git identity
configured to commit updated flake.lock files. This adds a system-wide
gitconfig with user.name and user.email for root.

Fixes: "fatal: unable to auto-detect email address"

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>

+7
+7
hosts/server/default.nix
··· 68 68 wheelNeedsPassword = true; 69 69 }; 70 70 71 + # Global git config for root (needed by nixos-upgrade to commit lock files) 72 + environment.etc."gitconfig".text = '' 73 + [user] 74 + name = NixOS Upgrade 75 + email = root@server.local 76 + ''; 77 + 71 78 # Don't commit flake.lock on the server — it never pushes, so local commits 72 79 # would just diverge from the laptop's pushed updates. 73 80 system.autoUpgrade.flags = [