diff --git a/nixos/modules/hardware/fw-fanctrl.nix b/nixos/modules/hardware/fw-fanctrl.nix index feb434853eade..01df7ae3fb5f4 100644 --- a/nixos/modules/hardware/fw-fanctrl.nix +++ b/nixos/modules/hardware/fw-fanctrl.nix @@ -30,7 +30,7 @@ in Additional config entries for the fw-fanctrl service (documentation: ) ''; type = lib.types.submodule { - freeformType = configFormat.type; + freeformType = lib.types.attrsOf configFormat.type; options = { defaultStrategy = lib.mkOption { type = lib.types.str; diff --git a/nixos/modules/programs/openvpn3.nix b/nixos/modules/programs/openvpn3.nix index 2ab5fbfc90839..88c2660055c19 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"; diff --git a/nixos/modules/security/agnos.nix b/nixos/modules/security/agnos.nix index dbd93afdb263f..7697fa5e523f1 100644 --- a/nixos/modules/security/agnos.nix +++ b/nixos/modules/security/agnos.nix @@ -15,7 +15,7 @@ let inherit (lib) types mkOption; in types.submodule { - freeformType = format.type; + freeformType = types.attrsOf format.type; options = { email = mkOption { @@ -53,7 +53,7 @@ let inherit (lib) types literalExpression mkOption; in types.submodule { - freeformType = format.type; + freeformType = types.attrsOf format.type; options = { domains = mkOption { @@ -91,7 +91,7 @@ in settings = mkOption { description = "Settings"; type = types.submodule { - freeformType = format.type; + freeformType = types.attrsOf format.type; options = { dns_listen_addr = mkOption { diff --git a/nixos/modules/services/admin/meshcentral.nix b/nixos/modules/services/admin/meshcentral.nix index 6d8be447645d8..f736429fd234d 100644 --- a/nixos/modules/services/admin/meshcentral.nix +++ b/nixos/modules/services/admin/meshcentral.nix @@ -24,7 +24,7 @@ with lib; - [Old homepage with documentation link](https://www.meshcommander.com/meshcentral2) ''; type = types.submodule { - freeformType = configFormat.type; + freeformType = attrsOf configFormat.type; }; example = { settings = {