Skip to content

Commit 138ac30

Browse files
nixos/v2ray: change the type of config field (NixOS#163810)
2 parents c686ea4 + fc4e95e commit 138ac30

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nixos/modules/services/networking/v2ray.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
with lib;
44

5-
{
5+
let
6+
json = pkgs.formats.json { };
7+
in {
68
options = {
79

810
services.v2ray = {
@@ -32,7 +34,7 @@ with lib;
3234
};
3335

3436
config = mkOption {
35-
type = types.nullOr (types.attrsOf types.unspecified);
37+
type = types.nullOr json.type;
3638
default = null;
3739
example = {
3840
inbounds = [{

0 commit comments

Comments
 (0)