diff options
author | Felix Buehler <account@buehler.rocks> | 2023-03-19 21:44:31 +0100 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2023-04-07 13:38:33 +0200 |
commit | 327b0cff7aedc20a148d245b1182f43800acc1f5 (patch) | |
tree | a498ae1b2dd2289310483d81345903d7e9123cb7 /nixos/modules/services/misc/gitlab.nix | |
parent | b392d9b827cf4bb52141ab86e4202ec340f0b181 (diff) |
treewide: use more lib.optionalString
Diffstat (limited to 'nixos/modules/services/misc/gitlab.nix')
-rw-r--r-- | nixos/modules/services/misc/gitlab.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix index d278b571a6410..12c67c5f5a1e7 100644 --- a/nixos/modules/services/misc/gitlab.nix +++ b/nixos/modules/services/misc/gitlab.nix @@ -1215,7 +1215,7 @@ in { enableDelete = true; # This must be true, otherwise GitLab won't manage it correctly extraConfig = { auth.token = { - realm = "http${if cfg.https == true then "s" else ""}://${cfg.host}/jwt/auth"; + realm = "http${optionalString (cfg.https == true) "s"}://${cfg.host}/jwt/auth"; service = cfg.registry.serviceName; issuer = cfg.registry.issuer; rootcertbundle = cfg.registry.certFile; |