From 00dbb637e777fe5f70f807b2b55f0aae4a4cb10f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= Date: Sun, 19 Jan 2025 12:14:27 +0100 Subject: [PATCH] fix: fix git permissions for system.autoUpgrade --- system/nix.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/nix.nix b/system/nix.nix index 88ec7f2..6cdf0c9 100644 --- a/system/nix.nix +++ b/system/nix.nix @@ -23,6 +23,11 @@ in flake = "/etc/nixos"; }; + programs.git = { + enable = true; + config.safe.directory = [ "/etc/nixos" ]; + }; + systemd.services.nixos-upgrade.preStart = '' nix flake update --flake ${config.system.autoUpgrade.flake} '';