From 69aa67338f7eeba47c1dd1ff6d880dbf9e12a6b5 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Fri, 5 Sep 2025 18:04:48 +0200 Subject: [PATCH] nixos/modules: openvpn3 use correct type in freeformType --- nixos/modules/programs/openvpn3.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/nixos/modules/programs/openvpn3.nix b/nixos/modules/programs/openvpn3.nix index 2ab5fbfc9083..88c2660055c1 100644 --- a/nixos/modules/programs/openvpn3.nix +++ b/nixos/modules/programs/openvpn3.nix @@ -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";