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 = systemd.services.forgejo.preStart =
let let
adminCmd = "${lib.getExe config.services.forgejo.package} admin user"; adminCmd = "${lib.getExe config.services.forgejo.package} admin user";
pwd = config.age.secrets.forgejoAdminPass.path; password = config.age.secrets.forgejoAdminPass.path;
user = "tdback"; user = "tdback";
email = "tyler@tdback.net"; email = "tyler@tdback.net";
in '' 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" ]; services.openssh.settings.AllowUsers = [ "forgejo" ];