Homological theory of k-idempotent ideals in dualizing varieties