I want to calculate the cohomology of some space group using Gap, with the coefficient different $\mathbb{Z}$-modules corresponding to different group actions on $\mathbb{Z}$. For example, for the space group be $p4m$, there can be eight different actions on $\mathbb{Z}$, and I want to calculate the cohomology of all of them using Gap.
I can first calculate the resolution using Gap.
R:=ResolutionSpaceGroup(SpaceGroupIT(2, 11), 9);
When the $\mathbb{Z}$-module corresponds to the trivial action of the space group, I can calculate the cohomology using the following syntax.
List([0..8], x->Cohomology(HomToIntegers(R), x));
I can also calculate the cohomology of a different module defined by the function "Determinant".
Zor:=GroupHomomorphismByFunction(SpaceGroupIT(2, 11), GL(1, Integers), x->[[Determinant(x)]]); C:=HomToIntegralModule(R, Zor); List([0..8], x->Cohomology(C, x));
But I do not know how to input the rest six modules.
The following GAP commands provide one possible answer to your question. But there may be smarter ways of performing your computation.