Automatic system upgrades: Difference between revisions
m →Flake-based systems: Capitalisation consistency. |
m how to fix Git "fatal: unable to auto-detect email address" |
||
| Line 77: | Line 77: | ||
</nowiki>}} | </nowiki>}} | ||
=== Git "fatal: unable to auto-detect email address" === | |||
The root user doesn't have specified the user and email in the git configuration. To fix this, you can extend the <syntaxhighlight inline lang="bash">nixos-upgrade</syntaxhighlight> service with: | |||
{{file|auto-upgrade.nix|nix|<nowiki> | |||
systemd.services.nixos-upgrade.environment = { | |||
GIT_AUTHOR_NAME = "NixOS Auto-upgrade"; | |||
GIT_AUTHOR_EMAIL = "root@<your-hostname>"; | |||
GIT_COMMITTER_NAME = "NixOS Auto-upgrade"; | |||
GIT_COMMITTER_EMAIL = "root@<your-hostname>"; | |||
}; | |||
</nowiki>}} | |||
[[Category:NixOS]] | [[Category:NixOS]] | ||