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