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
@ -156,7 +156,7 @@ let
|
|||||||
};
|
};
|
||||||
extra = {};
|
extra = {};
|
||||||
uploads.storage_path = cfg.statePath;
|
uploads.storage_path = cfg.statePath;
|
||||||
pages = {
|
pages = optionalAttrs cfg.pages.enable {
|
||||||
enabled = cfg.pages.enable;
|
enabled = cfg.pages.enable;
|
||||||
port = 8090;
|
port = 8090;
|
||||||
host = cfg.pages.settings.pages-domain;
|
host = cfg.pages.settings.pages-domain;
|
||||||
|
Loading…
Reference in New Issue
Block a user