diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-05-01 16:36:44 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-05-01 16:36:44 +0200 |
commit | 27b2750a12eba62a9e1e48081421ea585c05954b (patch) | |
tree | 040a01ca6a36c676080aa9bfaec3efbd842d8ce2 /machines/srv1 | |
parent | a572639f05ebb8d88cb8fe283785edd25aa1c49d (diff) | |
download | dots-27b2750a12eba62a9e1e48081421ea585c05954b.tar.gz dots-27b2750a12eba62a9e1e48081421ea585c05954b.zip |
Use git user to mirror
Diffstat (limited to 'machines/srv1')
-rw-r--r-- | machines/srv1/configuration.nix | 4 |
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 = { |