nixos/modules: openvpn3 use correct type in freeformType
This commit is contained in:
@@ -18,7 +18,12 @@ let
|
|||||||
options
|
options
|
||||||
lists
|
lists
|
||||||
;
|
;
|
||||||
inherit (lib.types) bool submodule ints;
|
inherit (lib.types)
|
||||||
|
bool
|
||||||
|
submodule
|
||||||
|
ints
|
||||||
|
attrsOf
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.programs.openvpn3 = {
|
options.programs.openvpn3 = {
|
||||||
@@ -33,7 +38,7 @@ in
|
|||||||
description = "Options stored in {file}`/etc/openvpn3/netcfg.json` configuration file";
|
description = "Options stored in {file}`/etc/openvpn3/netcfg.json` configuration file";
|
||||||
default = { };
|
default = { };
|
||||||
type = submodule {
|
type = submodule {
|
||||||
freeformType = json.type;
|
freeformType = attrsOf json.type;
|
||||||
options = {
|
options = {
|
||||||
systemd_resolved = mkOption {
|
systemd_resolved = mkOption {
|
||||||
type = bool;
|
type = bool;
|
||||||
@@ -57,7 +62,7 @@ in
|
|||||||
description = "Options stored in {file}`/etc/openvpn3/log-service.json` configuration file";
|
description = "Options stored in {file}`/etc/openvpn3/log-service.json` configuration file";
|
||||||
default = { };
|
default = { };
|
||||||
type = submodule {
|
type = submodule {
|
||||||
freeformType = json.type;
|
freeformType = attrsOf json.type;
|
||||||
options = {
|
options = {
|
||||||
journald = mkOption {
|
journald = mkOption {
|
||||||
description = "Use systemd-journald";
|
description = "Use systemd-journald";
|
||||||
|
|||||||
Reference in New Issue
Block a user