nixos/modules: openvpn3 use correct type in freeformType
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user