From 65c2b30a288385cf3df4027d50080ac595bbcf83 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 2 Apr 2020 23:45:04 -0700 Subject: Reorganize and comment some of the nix code --- Com/Simatime/Cloud/git.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Com/Simatime/Cloud/git.nix (limited to 'Com/Simatime/Cloud/git.nix') diff --git a/Com/Simatime/Cloud/git.nix b/Com/Simatime/Cloud/git.nix new file mode 100644 index 0000000..4cdaa28 --- /dev/null +++ b/Com/Simatime/Cloud/git.nix @@ -0,0 +1,18 @@ +{ pkgs, ... }: + +{ + services = { + gitolite = { + enable = true; + enableGitAnnex = true; + # TODO: change this to /var/lib/gitolite? + dataDir = "/srv/git"; + user = "git"; + group = "git"; + extraGitoliteRc = '' + $RC{SITE_INFO} = 'a computer is a bicycle for the mind.'; + ''; + adminPubkey = builtins.readFile ../keys/ben.pub; + }; + }; +} -- cgit v1.2.3