diff --git a/modules/forgejo/default.nix b/modules/forgejo/default.nix index f6dc27e..0e6b073 100644 --- a/modules/forgejo/default.nix +++ b/modules/forgejo/default.nix @@ -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" ];