mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
nixos/gitlab: Fix error when GitLab Pages is not enabled
Even if GitLab is used without Pages, some of its settings are still used in the gitlab.yml file, resulting in errors such as error: The option `services.gitlab.pages.settings.pages-domain' is used but not defined. To fix this, make the settings' usage conditional on Pages being enabled.
This commit is contained in:
parent
1ec2a95c67
commit
ccaa6078ba
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ let
|
|||
};
|
||||
extra = {};
|
||||
uploads.storage_path = cfg.statePath;
|
||||
pages = {
|
||||
pages = optionalAttrs cfg.pages.enable {
|
||||
enabled = cfg.pages.enable;
|
||||
port = 8090;
|
||||
host = cfg.pages.settings.pages-domain;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue