Load DSC configuration as part of module

configuration do_something {


I’m looking for some suggestions, and to possible answer questions.
1.) Is it possible to load a configuration block into memory as part of a load. Similar to how functions are loaded into memory.
2.) I’m ultimately trying to utilize a CI/CD pipeline to install a DSC pull server. Some ideas.
a.) Generate mof as part of build process(which generates artifact), then upload mof to server and run start-dscconfiguration
b.) Package a module up in an on prem gallery and pull it to server through powershellget, then execute config.
c.) Zip up a script that contains has the configuration block as well as execution params, copy to server and execute.

any suggestions would be great.