From ced06145515786f03e34a70b670d2c8a91ed39d5 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..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} '';