mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
29c7665003
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
215 B
Nix
11 lines
215 B
Nix
{ config, lib, ... }:
|
|
{
|
|
config = {
|
|
services.foos."".bar = "baz";
|
|
result =
|
|
assert config.services.foos == { "" = { bar = "baz"; }; };
|
|
assert config.services.foo.bar == "baz";
|
|
true;
|
|
};
|
|
}
|