fix: fix git permissions for system.autoUpgrade
This commit is contained in:
parent
3007abfb7d
commit
ced0614551
|
@ -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}
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue