about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
Diffstat (limited to 'machines')
-rw-r--r--machines/srv1/configuration.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/machines/srv1/configuration.nix b/machines/srv1/configuration.nix
index 8ceaaf2..319c27a 100644
--- a/machines/srv1/configuration.nix
+++ b/machines/srv1/configuration.nix
@@ -15,7 +15,7 @@ let
   name=`echo "$1" | rev | cut -d'/' -f1 | rev`
 
   cd /srv/git
-  ${pkgs.git}/bin/git clone --mirror $1 $name
+  sudo -u git ${pkgs.git}/bin/git clone --mirror $1 $name
   '';
 in
   {
@@ -201,7 +201,7 @@ in
       '';
       serviceConfig = {
         Type = "oneshot";
-        User = "pn";
+        User = "git";
       };
     };
     timers.git-fetch = {