diff options
author | Ben Sima <ben@bsima.me> | 2019-09-11 16:12:06 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-09-11 16:12:06 -0700 |
commit | 9e566efb242f47b9f4a9bdf4657b920b2ed61217 (patch) | |
tree | 193613f41eab06452bb8af38b83f0f7a536f2053 | |
parent | 695fdf2b2ca2562b7d30c2bb4a140c0616e14aa6 (diff) |
[depo] some refactoring
-rw-r--r-- | depo/nutin-madaj/git.nix | 11 |
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; }; }; } |