From d41a820233d97bcd2fa93966210ed192a44c787b Mon Sep 17 00:00:00 2001 From: Andre Date: Wed, 2 Oct 2024 10:45:56 -0400 Subject: [PATCH] Users: remove error when trying to run repo as root --- modules/users/root/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/users/root/default.nix b/modules/users/root/default.nix index 84d498b..02ae81c 100644 --- a/modules/users/root/default.nix +++ b/modules/users/root/default.nix @@ -3,9 +3,14 @@ # Give root user access to run remote builds home-manager.users.root = { home.stateVersion = "24.05"; - programs.ssh = lib.mkIf config.nix.distributedBuilds { - enable = true; - matchBlocks = config.secrets.users.root.sshConfig; + programs = { + ssh = lib.mkIf config.nix.distributedBuilds { + enable = true; + matchBlocks = config.secrets.users.root.sshConfig; + }; + git.extraConfig = { + safe.directory = "/home/aires/Development/nix-configuration/.git"; + }; }; }; }