We propose a new equation of state for nuclear matter based on a generalized Skyrme model which is consistent with all current constraints on the observed properties of neutron stars. This generalized model depends only on two free parameters related to the ranges of pressure values at which different submodels are dominant, and which can be adjusted so that mass-radius and deformability constraints from astrophysical and gravitational wave measurements can be met. Our results support the Skyrme model and its generalizations as good candidates for a low energy effective field-theoretic description of nuclear matter even at extreme conditions such as those inside neutron stars.