File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
nixos/modules/services/misc Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 234234 description = lib . mdDoc "Path to the git repositories." ;
235235 } ;
236236
237+ camoHmacKeyFile = mkOption {
238+ type = types . nullOr types . str ;
239+ default = null ;
240+ example = "/var/lib/secrets/gitea/camoHmacKey" ;
241+ description = lib . mdDoc "Path to a file containing the camo HMAC key." ;
242+ } ;
243+
237244 mailerPasswordFile = mkOption {
238245 type = types . nullOr types . str ;
239246 default = null ;
429436 LFS_JWT_SECRET = "#lfsjwtsecret#" ;
430437 } ;
431438
439+ camo = mkIf ( cfg . camoHmacKeyFile != null ) {
440+ HMAC_KEY = "#hmackey#" ;
441+ } ;
442+
432443 session = {
433444 COOKIE_NAME = lib . mkDefault "session" ;
434445 } ;
570581 ${ replaceSecretBin } '#lfsjwtsecret#' '${ lfsJwtSecret } ' '${ runConfig } '
571582 '' }
572583
584+ ${ lib . optionalString ( cfg . camoHmacKeyFile != null ) ''
585+ ${ replaceSecretBin } '#hmackey#' '${ cfg . camoHmacKeyFile } ' '${ runConfig } '
586+ '' }
587+
573588 ${ lib . optionalString ( cfg . mailerPasswordFile != null ) ''
574589 ${ replaceSecretBin } '#mailerpass#' '${ cfg . mailerPasswordFile } ' '${ runConfig } '
575590 '' }
You can’t perform that action at this time.
0 commit comments