diff --git a/nixos/modules/services/misc/gitea.nix b/nixos/modules/services/misc/gitea.nix index 6fd4183bd6b4..afc2a71ec4ac 100644 --- a/nixos/modules/services/misc/gitea.nix +++ b/nixos/modules/services/misc/gitea.nix @@ -289,8 +289,9 @@ in runConfig = "${cfg.stateDir}/custom/conf/app.ini"; secretKey = "${cfg.stateDir}/custom/conf/secret_key"; in '' - # Make sure that the stateDir exists, as well as the conf dir in there + # Make sure that the stateDir exists, as well as the conf and log dir in there mkdir -p ${cfg.stateDir}/conf + mkdir -p ${cfg.stateDir}/log # copy custom configuration and generate a random secret key if needed ${optionalString (cfg.useWizard == false) ''