diff options
| author | c4710n <c4710n@users.noreply.github.com> | 2022-03-12 18:08:32 +0800 |
|---|---|---|
| committer | c4710n <c4710n@users.noreply.github.com> | 2022-03-12 18:08:32 +0800 |
| commit | fc4e95e2e0966d641e985117674af67d10237a6f (patch) | |
| tree | f0a488c4d78ce389c0bd5c76572eac39023f0b78 /pkgs/development/python-modules/rangehttpserver | |
| parent | 02177737c5d977444df41e0f5d6124c48c64bba3 (diff) | |
nixos/v2ray: change the type of `config` field
Currently, the type of `config` is `types.attrsOf types.unspecified`. It results
that the merging of list doesn't perform as expected.
For example, I declare two part of config in two files:
`a.nix`:
```
config = {
routing = {
rules = [
{
type = "field";
outboundTag = "direct";
domain = [ "geosite:cn" ];
}
];
};
};
```
`b.nix`:
```
config = {
routing = {
rules = [
{
type = "field";
outboundTag = "direct";
ip = [
"geoip:cn"
"geoip:private"
];
}
];
};
};
```
After merging, only the content of `b.nix` left, the content of `a.nix` is
removed.
This commit give the right type of config, which makes the merging of config
acts as expected.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions
