Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- network.description = "Gitlab";
- gitlab =
- { config, pkgs, ... }:
- {
- deployment.targetEnv = "virtualbox";
- deployment.virtualbox.memorySize = 2048;
- deployment.virtualbox.headless = true;
- services.nginx = {
- enable = true;
- recommendedGzipSettings = true;
- recommendedOptimisation = true;
- recommendedProxySettings = true;
- recommendedTlsSettings = true;
- virtualHosts."git.example.com" = {
- enableACME = true;
- forceSSL = true;
- locations."/".proxyPass = "http://unix:/run/gitlab/gitlab-workhorse.socket";
- };
- };
- services.gitlab = {
- enable = true;
- databasePassword = "eXaMpl3";
- initialRootPassword = "UseNixOS!";
- https = true;
- host = "git.example.com";
- port = 443;
- user = "git";
- group = "git";
- smtp = {
- enable = true;
- address = "localhost";
- port = 25;
- };
- secrets = {
- db = "uPgq1gtwwHiatiuE0YHqbGa5lEIXH7fMsvuTNgdzJi8P0Dg12gibTzBQbq5LT7PNzcc3BP9P1snHVnduqtGF43PgrQtU7XL93ts6gqe9CBNhjtaqUwutQUDkygP5NrV6";
- secret = "devzJ0Tz0POiDBlrpWmcsjjrLaltyiAdS8TtgT9YNBOoUcDsfppiY3IXZjMVtKgXrFImIennFGOpPN8IkP8ATXpRgDD5rxVnKuTTwYQaci2NtaV1XxOQGjdIE50VGsR3";
- otp = "e1GATJVuS2sUh7jxiPzZPre4qtzGGaS22FR50Xs1TerRVdgI3CBVUi5XYtQ38W4xFeS4mDqi5cQjExE838iViSzCdcG19XSL6qNsfokQP9JugwiftmhmCadtsnHErBMI";
- };
- extraConfig = {
- gitlab = {
- email_from = "gitlab-no-reply@example.com";
- email_display_name = "Example GitLab";
- email_reply_to = "gitlab-no-reply@example.com";
- default_projects_features = { builds = false; };
- };
- };
- };
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement