
This is to support single-to-multi service migrations, so that the `to` (e.g. `foos.""`) isn't defined unconditionally. See test cases.
11 lines
196 B
Nix
11 lines
196 B
Nix
{ config, lib, ... }:
|
|
{
|
|
config = {
|
|
services.foo.enable = true;
|
|
services.foo.bar = "baz";
|
|
result =
|
|
assert config.services.foos == { "" = { bar = "baz"; }; };
|
|
true;
|
|
};
|
|
}
|