@dlakelan @abcdw @charliemac it may be that you need to override the #:select keyword argument, like in this case: https://codeberg.org/fishinthecalculator/gocix-mirror/src/branch/main/modules/oci/services/containers.scm#L700
You should pass it a function like:
(use-modules (ice-9 match))
(define-public (staged-module-name? name)
"Return true if NAME (a list of symbols) denotes a Guix or staged module."
(match name
(('guix _ ...) #t)
(('gnu _ ...) #t)
(('staged _ ...) #t)
(_ #f)))
This is what I'm doing in gocix: https://codeberg.org/fishinthecalculator/gocix-mirror/src/branch/main/modules/oci/self.scm#L9 .