nixos/modules: openvpn3 use correct type in freeformType

This commit is contained in:
Johannes Kirschbauer
2025-09-05 18:04:48 +02:00
parent 3e38f2bd53
commit 69aa67338f

View File

@@ -18,7 +18,12 @@ let
options
lists
;
inherit (lib.types) bool submodule ints;
inherit (lib.types)
bool
submodule
ints
attrsOf
;
in
{
options.programs.openvpn3 = {
@@ -33,7 +38,7 @@ in
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;
@@ -57,7 +62,7 @@ in
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";