lol

fixup! gitlab: 8.0.5 -> 8.5.0, service improvements

Some debugging and development leftovers.

+4 -4
+4 -4
nixos/modules/services/misc/gitlab.nix
··· 39 ''; 40 41 gitlabConfig = { 42 production = flip recursiveUpdate cfg.extraConfig { 43 gitlab = { 44 host = cfg.host; ··· 52 default_projects_features = { 53 issues = true; 54 merge_requests = true; 55 - wiki = false; 56 snippets = false; 57 builds = true; 58 }; ··· 241 242 extraConfig = mkOption { 243 type = types.attrs; 244 - default = ""; 245 example = { 246 gitlab = { 247 default_projects_features = { ··· 348 gitAndTools.git 349 openssh 350 nodejs 351 - sudo 352 ]; 353 preStart = '' 354 mkdir -p ${cfg.backupPath} ··· 400 401 if [ "${cfg.databaseHost}" = "127.0.0.1" ]; then 402 if ! test -e "${cfg.statePath}/db-created"; then 403 - psql postgres -c "CREATE ROLE gitlab WITH LOGIN CREATEDB NOCREATEROLE NOCREATEUSER ENCRYPTED PASSWORD '${cfg.databasePassword}'" 404 ${config.services.postgresql.package}/bin/createdb --owner gitlab gitlab || true 405 touch "${cfg.statePath}/db-created" 406
··· 39 ''; 40 41 gitlabConfig = { 42 + # These are the default settings from config/gitlab.example.yml 43 production = flip recursiveUpdate cfg.extraConfig { 44 gitlab = { 45 host = cfg.host; ··· 53 default_projects_features = { 54 issues = true; 55 merge_requests = true; 56 + wiki = true; 57 snippets = false; 58 builds = true; 59 }; ··· 242 243 extraConfig = mkOption { 244 type = types.attrs; 245 + default = {}; 246 example = { 247 gitlab = { 248 default_projects_features = { ··· 349 gitAndTools.git 350 openssh 351 nodejs 352 ]; 353 preStart = '' 354 mkdir -p ${cfg.backupPath} ··· 400 401 if [ "${cfg.databaseHost}" = "127.0.0.1" ]; then 402 if ! test -e "${cfg.statePath}/db-created"; then 403 + psql postgres -c "CREATE ROLE gitlab WITH LOGIN NOCREATEDB NOCREATEROLE NOCREATEUSER ENCRYPTED PASSWORD '${cfg.databasePassword}'" 404 ${config.services.postgresql.package}/bin/createdb --owner gitlab gitlab || true 405 touch "${cfg.statePath}/db-created" 406