Skip to content

Commit

Permalink
nixos/gitlab: Fix services.gitlab.enableStartTLSAuto
Browse files Browse the repository at this point in the history
'toString false' results in an empty string, which, in this context,
is a syntax error. Use boolToString instead.

Fixes NixOS#86160
  • Loading branch information
talyz committed Apr 28, 2020
1 parent 8d1d645 commit c0a838d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/misc/gitlab.nix
Expand Up @@ -180,7 +180,7 @@ let
${optionalString (cfg.smtp.passwordFile != null) ''password: "@smtpPassword@",''}
domain: "${cfg.smtp.domain}",
${optionalString (cfg.smtp.authentication != null) "authentication: :${cfg.smtp.authentication},"}
enable_starttls_auto: ${toString cfg.smtp.enableStartTLSAuto},
enable_starttls_auto: ${boolToString cfg.smtp.enableStartTLSAuto},
ca_file: "/etc/ssl/certs/ca-certificates.crt",
openssl_verify_mode: '${cfg.smtp.opensslVerifyMode}'
}
Expand Down

0 comments on commit c0a838d

Please sign in to comment.