nixos/modules: openvpn3 use correct type in freeformType

Changed files
+8 -3
nixos
modules
programs
+8 -3
nixos/modules/programs/openvpn3.nix
···
options
lists
;
-
inherit (lib.types) bool submodule ints;
+
inherit (lib.types)
+
bool
+
submodule
+
ints
+
attrsOf
+
;
in
{
options.programs.openvpn3 = {
···
description = "Options stored in {file}`/etc/openvpn3/netcfg.json` configuration file";
default = { };
type = submodule {
-
freeformType = json.type;
+
freeformType = attrsOf json.type;
options = {
systemd_resolved = mkOption {
type = bool;
···
description = "Options stored in {file}`/etc/openvpn3/log-service.json` configuration file";
default = { };
type = submodule {
-
freeformType = json.type;
+
freeformType = attrsOf json.type;
options = {
journald = mkOption {
description = "Use systemd-journald";