move module-based-service parameter types into service

This is in preparation for writing something that extracts them
into documentation.

user configurations now call config.system.service.foo.build { ...params }
instead of config.system.service.foo

the parameter type definitions themselves now move into the
config stanza of the module referencing the service

new helper function  liminix.callService

The only service moved so far is dnsmasq
This commit is contained in:
Daniel Barlow 2023-08-04 20:39:29 +01:00
parent c3631f4c9d
commit fbb2c04132
5 changed files with 73 additions and 54 deletions

View file

@ -119,7 +119,7 @@ in rec {
services.dns =
let interface = services.int;
in svc.dnsmasq {
in svc.dnsmasq.build {
resolvconf = services.resolvconf;
inherit interface;
ranges = [