chore(docs): Adjust custom-service example after #258

This commit is contained in:
Sridhar Ratnakumar 2024-07-09 17:20:55 -04:00 committed by GitHub
parent 7200b458b5
commit e995bbcc9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,14 +96,11 @@ Let's write the same `hello` service as above, in `hello.nix`, but this time as
default = "Hello, world!";
description = "The message to be displayed";
};
outputs.settings = lib.mkOption {
type = lib.types.deferredModule;
internal = true;
readOnly = true;
default = {
processes.${name} = {
command = "${lib.getExe config.package} --greeting='${config.message}'";
};
};
config = {
settings = {
processes.${name} = {
command = "${lib.getExe config.package} --greeting='${config.message}'";
};
};
};