From e9df3608e1a6dd580d5825a7cc5972a59f0d464d Mon Sep 17 00:00:00 2001 From: sterni Date: Wed, 30 Nov 2022 15:52:08 +0100 Subject: feat(sterni/machines/edwin): automatically sync repos with github MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I primarily use GitHub for most of these preexisting repositories, but they should be properly replicated on edwin in case I want to stop. Pushing the respective refs manually is cumbersome and error prone, so let's automate it. The repositories are basically chowned to git:git currently and `git fetch 'refs/*:refs/*' --prune` is execute regularly to update the repository. In the future I could contemplate doing it the other way round – using edwin as upstream and using `git push --mirror` to update the GitHub repositories. Change-Id: Icb8a11223c0b4d3c8ce9a2da7fb2b4d4df4887f8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7486 Tested-by: BuildkiteCI Reviewed-by: sterni --- users/sterni/machines/edwin/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'users/sterni/machines/edwin/default.nix') diff --git a/users/sterni/machines/edwin/default.nix b/users/sterni/machines/edwin/default.nix index af1dceada51c..de34aa78afe4 100644 --- a/users/sterni/machines/edwin/default.nix +++ b/users/sterni/machines/edwin/default.nix @@ -72,7 +72,7 @@ root.openssh.authorizedKeys.keys = depot.users.sterni.keys.all; lukas = { isNormalUser = true; - extraGroups = [ "wheel" "http" ]; + extraGroups = [ "wheel" "http" "git" ]; openssh.authorizedKeys.keys = depot.users.sterni.keys.all; shell = "${pkgs.fish}/bin/fish"; }; -- cgit 1.4.1