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:36:44 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-05-01 16:36:44 +0200
commit27b2750a12eba62a9e1e48081421ea585c05954b (patch)
tree040a01ca6a36c676080aa9bfaec3efbd842d8ce2 /machines/srv1
parenta572639f05ebb8d88cb8fe283785edd25aa1c49d (diff)
downloaddots-27b2750a12eba62a9e1e48081421ea585c05954b.tar.gz
dots-27b2750a12eba62a9e1e48081421ea585c05954b.zip
Use git user to mirror
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 ea7d730..bbf35ec 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
   {
@@ -200,7 +200,7 @@ in
       '';
       serviceConfig = {
         Type = "oneshot";
-        User = "pn";
+        User = "git";
       };
     };
     timers.git-fetch = {