Skip to content

Commit

Permalink
nixos/v2ray: change the type of config field (NixOS#163810)
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst authored Dec 11, 2024
2 parents c686ea4 + fc4e95e commit 138ac30
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nixos/modules/services/networking/v2ray.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

with lib;

{
let
json = pkgs.formats.json { };
in {
options = {

services.v2ray = {
Expand Down Expand Up @@ -32,7 +34,7 @@ with lib;
};

config = mkOption {
type = types.nullOr (types.attrsOf types.unspecified);
type = types.nullOr json.type;
default = null;
example = {
inbounds = [{
Expand Down

0 comments on commit 138ac30

Please sign in to comment.