diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-09-26 19:43:28 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-09-26 19:43:28 +0200 |
| commit | 4bf39c16d5dbadb261b82625f4d4c5e9f9c4381e (patch) | |
| tree | 9d9d96254b622882e0dbaf3393f9b7ef0d1ff1c5 | |
| parent | 41a792d079a89016d643029d29a388c813814b15 (diff) | |
| download | nixos-4bf39c16d5dbadb261b82625f4d4c5e9f9c4381e.tar nixos-4bf39c16d5dbadb261b82625f4d4c5e9f9c4381e.tar.gz nixos-4bf39c16d5dbadb261b82625f4d4c5e9f9c4381e.tar.bz2 nixos-4bf39c16d5dbadb261b82625f4d4c5e9f9c4381e.tar.xz nixos-4bf39c16d5dbadb261b82625f4d4c5e9f9c4381e.zip | |
Update gitolite config
| -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 = { |
