diff options
Diffstat (limited to 'ymir.nix')
-rw-r--r-- | ymir.nix | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -411,9 +411,18 @@ in rec { | |||
411 | enable = true; | 411 | enable = true; |
412 | adminPubkey = builtins.readFile (builtins.head (import ./users/gkleen.nix).openssh.authorizedKeys.keyFiles); | 412 | adminPubkey = builtins.readFile (builtins.head (import ./users/gkleen.nix).openssh.authorizedKeys.keyFiles); |
413 | dataDir = "/srv/git"; | 413 | dataDir = "/srv/git"; |
414 | }; | 414 | user = "gitolite"; |
415 | users.extraUsers."gitolite" = { | ||
416 | group = "git"; | 415 | group = "git"; |
416 | extraGitoliteRc = '' | ||
417 | $RC{UMASK} = 0027; | ||
418 | $RC{GIT_CONFIG_KEYS} = 'gitweb\.(owner|description|category)'; | ||
419 | $RC{LOG_DEST} = 'syslog'; | ||
420 | $RC{ROLES}{AUTHORS} = 1; | ||
421 | $RC{GROUPLIST_PGM} = 'printf "@self-key-managers"'; | ||
422 | $RC{HOSTNAME} = '${networking.hostName}'; | ||
423 | $RC{LOCAL_CODE} = "$rc{GL_ADMIN_BASE}/local"; | ||
424 | push(@{$RC{ENABLE}}, qw(create fork D cgit repo-specific-hooks macros)); | ||
425 | ''; | ||
417 | }; | 426 | }; |
418 | 427 | ||
419 | services.gitDaemon = { | 428 | services.gitDaemon = { |