fix: fix git permissions for system.autoUpgrade

This commit is contained in:
Felix Schröter 2025-01-19 12:14:27 +01:00
parent 3007abfb7d
commit ced0614551
Signed by: felschr
GPG key ID: 671E39E6744C807D

View file

@ -23,6 +23,11 @@ in
flake = "/etc/nixos"; flake = "/etc/nixos";
}; };
programs.git = {
enable = true;
config.safeDirectory = [ "/etc/nixos" ];
};
systemd.services.nixos-upgrade.preStart = '' systemd.services.nixos-upgrade.preStart = ''
nix flake update --flake ${config.system.autoUpgrade.flake} nix flake update --flake ${config.system.autoUpgrade.flake}
''; '';