I finished my PhD a few years ago, and since then have been hopping from temporary job to temporary job every year. They've all been research-and-teaching jobs, which has been exactly what I wanted. I applied to a whole host of jobs this year, and got one. It's a secure, open-ended job, in a location I think I could be happy living in for a long time. I'm incredibly relieved about this.
The one downside is that it's a teaching-only job.
Now, I honestly enjoy teaching, but it alone is not enough to keep me in this career in the long run. This job seems like a poisoned chalice for my research career: not only does it mean less research time, it also means I'm less likely to be able to attend seminars, I'll have minimal free time during other mathematicians' work hours to liaise with them, I'll receive no funding to attend conferences, I won't be able to swap out duties with other people to give talks, and so on. I won't even be housed in the same building as the research mathematicians, so even interacting with them over lunch is going to be difficult. I'm basically excluded from all of the things that are involved in being an active member of the community!
How do I avoid being funnelled into a permanent teaching-only career? How do I make the most of the time I have during this job? Am I going to find it more difficult to be taken seriously as a researcher after a few years in this job?
Edited to clarify: my department is not the mathematics department. It is part of the university, but it is a "learning and teaching"-style department: the vast majority of staff there are teaching-only. I don't know whether this makes a concrete difference, but it might well impact funding, internal policy regarding grants, the priorities of my line managers, etc. I have no idea. Anecdotes and experiences related to this might also be useful.