summaryrefslogtreecommitdiff
path: root/depo/nutin-madaj/git.nix
diff options
context:
space:
mode:
Diffstat (limited to 'depo/nutin-madaj/git.nix')
-rw-r--r--depo/nutin-madaj/git.nix11
1 files changed, 3 insertions, 8 deletions
diff --git a/depo/nutin-madaj/git.nix b/depo/nutin-madaj/git.nix
index c40e8b9..e61abb4 100644
--- a/depo/nutin-madaj/git.nix
+++ b/depo/nutin-madaj/git.nix
@@ -1,23 +1,18 @@
{ pkgs, ... }:
-let
- benKey = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCiNB0iF9ClawNEizBtdYucqp1tAXXRbqvlPS6PFRrtiwSl+SJD29BCLgA5rLxcmFhBHZ/iId/En7GPFEzI/gMu071J7pUI4OcW0UVZju3GNc6ZEz/a6AD2u79JiXEDHfPEdmMqAe36kkaK0KJWSQP3xsFRwJ+8F8HHbSwoCLL+GJhBgAWHQLGfKesNrDacNljNDU3CgkEnDmu8QKuSzH2k1vrr69q2u2iMSAdiStDBAWEjN5nCVrm2XB2vmFLMtXpX2n8JI+znOGzRRDc8dNXejQeDMZGyV6jfVidEIX7vdgSydGjTRKcCLVAsKY3z0gYBZ8u8EUNujgcFBnnAvytj ben@neb";
- gitDir = "/srv/git";
-in
{
services = {
-
gitolite = {
enable = true;
enableGitAnnex = true;
- dataDir = "${gitDir}";
+ # 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.';
- $RC{GIT_CONFIG_KEYS} = 'gitweb\.(owner|description|category)';
'';
- adminPubkey = "${benKey}";
+ adminPubkey = builtins.readFile ../../keys/ben.pub;
};
};
}