rename dot-vc2 to ston-atl
[myNix.git] / lbhost / conf.gitd.nix
blob0da15c637d284f01c6c4d2622b459ec84e2faec6
1 { config
2 , mylib
3 , ...
4 }:
6 with builtins;
7 let
8   inherit (mylib)
9     maybe
10     ;
11   hostname = config.networking.hostName;
12   maybe' = maybe (
13     hostname == "ston-atl"
14   );
17   services.gitolite = maybe' {
18     enable = trace "Enabled Gitolite" true;
19     user = "git";
20     group = "git";
21     home = "/home/git";
22     extraGitoliteRc = ''
23       $RC{UMASK} = 0027;
24     '';
25     adminPubkey = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC9hFsMewbyDR+aiYNobFz4wzOfcEQu7ZpktQHzV6gbTh+bPuvX04+Mam3u4nhqEVCeCca0LtWGFrUcv8q0atE9SQW3yPAnwt7ZmyrMNEKhYJFtyrEZLgK3mPpqzZgK4lek7UsjETWq5U6rJLd7MLvyNAYj05Dwq17/uLTNbypZCr6wdUu2N6D9fJSdWWxgiw3Q6DF5HH2aCM0C6TozXhKgFopfDVLEgJ+kZsFS6sqCsGN1MUtPijQMlNfWptS+IElszT1Z5aYCFcXW46ydxQmtONn6YRB4EbOUXCAKLs6hPr78RXCVtqy0WqxYKkfrqPsy/G51kt3f7J4KZodwkhgbMaIqOG0cysxHKWX/JSJpSexObHDN9bjkiWIuxt4RKgfHH8AtoDeIPM++WsJQSxNjc7JqvD7l8JttEAbDOStdgnPij1C9V1g08cLb4n3dqk0GmEcfYg8fZCUuZlhE5l7VmmudajmnP7JAjxcdEtzBVcadCFfrOfhh5NYpermiANE= jack@pro-pri";
26   };
27   services.gitDaemon = maybe' {
28     enable = trace "Enabled Git Daemon" true;
29     basePath = "/home/git/repositories/";
30   };