Gitlab: Difference between revisions

WoutSwinkels (talk | contribs)
m Remove duplicate 'on the' under the 'Migrating an existing Gitlab to a Nixos installation' section
Lelgenio (talk | contribs)
Add example for setting feature flags declaratively
 
Line 66: Line 66:
   host = "git.example.org";
   host = "git.example.org";
};
};
</syntaxhighlight>
=== Feature Flags ===
You can declaratively enable [https://gitlab-docs-d6a9bb.gitlab.io/ee/user/feature_flags.html Gitlab Feature Flags] using <code>extraGitlabRb</code>:<syntaxhighlight lang="nix">
{
  services.gitlab = {
    enable = true;
    extraGitlabRb = ''
      Feature.enable(:issue_date_filter)
    '';
    # Other configuration...
  };
}
</syntaxhighlight>
</syntaxhighlight>