ntpd-rs: projects-old -> projects#832
Conversation
d9db855 to
bb8d697
Compare
| examples.basic = { | ||
| module = ./services/ntpd-rs/examples/basic.nix; | ||
| description = '' | ||
| Example config for ntpd-rs options is available in tests. |
There was a problem hiding this comment.
This is more of a comment than a description, right? You're saying that we should have the configuration in the tests as a standalone example, in the future.
There was a problem hiding this comment.
Not quite. I saw no need to rewrite examples, as the test expression shows how to use all options as made in the module.
There was a problem hiding this comment.
In this case, we can set the example to null and just have the test be in nixos.tests. What do you think?
There was a problem hiding this comment.
Yes, that is more ideal. I did attempt module = null; but I got errors like:
{
description = ''
Example config for ntpd-rs options is available in tests.
'';
module = null;
tests = {
ntpd-rs = "/nix/store/dn9smqqg60pn1a3c1sk2m0m8iakm84zs-source/nixos/tests/ntpd-rs.nix";
};
}: expected type option<example>, but value does not conform to 'example': expected 'example'-struct, but found:
missing required either<path, string>[absolute path] field 'module'
Was my declaration incorrect?
There was a problem hiding this comment.
Each service must have an example and each example must have a module, but examples themselves can be null to signify that they're needed, but not available. In this case, you need examples.basic = null;
There was a problem hiding this comment.
aaah, got that. Let me commit something, and you have a look
a01e7d0 to
289446f
Compare
Closes #738