s/pwd/password/ for clarity

This commit is contained in:
tdback 2024-11-12 21:00:09 -05:00
parent 49a9a24c75
commit 35d46ca712

View file

@ -34,11 +34,11 @@ in
systemd.services.forgejo.preStart =
let
adminCmd = "${lib.getExe config.services.forgejo.package} admin user";
pwd = config.age.secrets.forgejoAdminPass.path;
password = config.age.secrets.forgejoAdminPass.path;
user = "tdback";
email = "tyler@tdback.net";
in ''
${adminCmd} create --admin --email ${email} --username ${user} --password "$(tr -d '\n' < ${pwd})" || true
${adminCmd} create --admin --email ${email} --username ${user} --password "$(tr -d '\n' < ${password})" || true
'';
services.openssh.settings.AllowUsers = [ "forgejo" ];