about summary refs log tree commit diff
path: root/machines/srv1
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-05-01 16:41:30 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-05-01 16:41:30 +0200
commit13ed5504cbde8234a34c8e5fd25a0c82d74ecfa8 (patch)
tree32b23841b75621334a00fb5172e1394dd6911055 /machines/srv1
parent67486c3f054a6ab9c658fa16e96072de6907214a (diff)
parent4277ed0f32c31db5267c173ccb45435fe8ae1667 (diff)
downloaddots-13ed5504cbde8234a34c8e5fd25a0c82d74ecfa8.tar.gz
dots-13ed5504cbde8234a34c8e5fd25a0c82d74ecfa8.zip
Merge branch 'master' of ssh://github.com/pniedzwiedzinski/dots
Diffstat (limited to 'machines/srv1')
-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 = {