From e108f7410c616cdd6dafb88331e964adbda0504e Mon Sep 17 00:00:00 2001 From: Jean-Marie 'Histausse' Mineau Date: Mon, 12 Feb 2024 23:00:04 +0100 Subject: [PATCH] fix typo --- pp-forgejo.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pp-forgejo.nix b/pp-forgejo.nix index 3d9eb42..1b19a62 100644 --- a/pp-forgejo.nix +++ b/pp-forgejo.nix @@ -53,9 +53,9 @@ in services.forgejo.settings.session.COOKIE_SECURE = lib.mkForce true; # Why do I need to override this??? # If true, openid users cannot create new account - #services.forgejo.settings.service.DISABLE_REGISTRATION = lib.mkForce (!cfg.openIdEnable); + #services.forgejo.settings.service.DISABLE_REGISTRATION = lib.mkForce (!cfg.openIdEnabled); services.forgejo.settings.service.DISABLE_REGISTRATION = lib.mkForce false; - services.forgejo.settings.service.ALLOW_ONLY_EXTERNAL_REGISTRATION = cfg.openIdEnable; + services.forgejo.settings.service.ALLOW_ONLY_EXTERNAL_REGISTRATION = cfg.openIdEnabled; services.forgejo.lfs.enable = true; services.forgejo.settings.server.DOMAIN = cfg.domain; @@ -121,7 +121,7 @@ in proxy_pass_request_headers on; ''; }; - locations."/user/login" = lib.mkIf (cfg.openIdEnable) { + locations."/user/login" = lib.mkIf (cfg.openIdEnabled) { return = "301 https://$host/user/oauth2/${cfg.openIdClientName}"; }; };