From 6fd9792240fe3797477e31a209743440718932aa Mon Sep 17 00:00:00 2001 From: sterni Date: Wed, 30 Nov 2022 16:42:58 +0100 Subject: feat(sterni/machines/edwin): mirror some repos I'm involved in Change-Id: I83bd86540bb1de7c02b204165c094d8514ffcae9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7487 Tested-by: BuildkiteCI Reviewed-by: sterni --- .../sterni/machines/edwin/http/code.sterni.lv.nix | 23 ++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'users') diff --git a/users/sterni/machines/edwin/http/code.sterni.lv.nix b/users/sterni/machines/edwin/http/code.sterni.lv.nix index 5e917630cfb2..bf98a608cef6 100644 --- a/users/sterni/machines/edwin/http/code.sterni.lv.nix +++ b/users/sterni/machines/edwin/http/code.sterni.lv.nix @@ -11,6 +11,18 @@ let description = "gopher server (and library for Haskell)"; upstream = "https://github.com/sternenseemann/spacecookie.git"; }; + "mirror/depot" = { + description = "monorepo for the virus lounge"; + upstream = "https://code.tvl.fyi"; + }; + "mirror/flipdot-gschichtler" = { + description = "message queue system for OpenLab's flipdot display"; + upstream = "https://github.com/openlab-aux/flipdot-gschichtler.git"; + }; + "mirror/nixpkgs" = { + description = "Nix packages collection"; + upstream = "https://github.com/nixos/nixpkgs.git"; + }; }; } { @@ -33,6 +45,10 @@ let defaultBranch = "main"; upstream = "https://github.com/sternenseemann/buchstabensuppe.git"; }; + "mirror/saneterm" = { + description = "modern line-oriented terminal emulator without support for TUIs"; + upstream = "git://git.8pit.net/saneterm.git"; + }; }; } { @@ -135,6 +151,9 @@ let # User and group name used for running the mirror scripts mirroredReposOwner = "git"; + + # Make repo name suitable for systemd unit/timer + unitName = name: "mirror-${lib.strings.sanitizeDerivationName name}"; in { @@ -177,7 +196,7 @@ in ( name: repo: { - name = "mirror-${name}"; + name = unitName name; value = { description = "regularly update mirror git repository ${name}"; wantedBy = [ "timers.target" ]; @@ -198,7 +217,7 @@ in ( name: repo: { - name = "mirror-${name}"; + name = unitName name; value = { description = "mirror git repository ${name}"; after = [ "network.target" ]; -- cgit 1.4.1