summaryrefslogtreecommitdiffstats
path: root/nixos
diff options
context:
space:
mode:
authorScriptkiddi <fritz@otlinghaus.it>2021-01-26 21:08:47 +0100
committerCole Helbling <cole.e.helbling@outlook.com>2021-01-28 13:58:33 -0800
commit103ea99b99156299e8468862139db84c7e1d0c1e (patch)
tree33275cef822b375e38e7a0b8db6cc9bfbe4ee6c2 /nixos
parent1752a175e823892859448cefb6203023a491c54c (diff)
nixos/gvpe: add types
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/gvpe.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/gvpe.nix b/nixos/modules/services/networking/gvpe.nix
index 92e87cd4640d..b851facf1e32 100644
--- a/nixos/modules/services/networking/gvpe.nix
+++ b/nixos/modules/services/networking/gvpe.nix
@@ -3,7 +3,7 @@
{config, pkgs, lib, ...}:
let
- inherit (lib) mkOption mkIf;
+ inherit (lib) mkOption mkIf types;
cfg = config.services.gvpe;
@@ -46,12 +46,14 @@ in
nodename = mkOption {
default = null;
+ type = types.nullOr types.str;
description =''
GVPE node name
'';
};
configText = mkOption {
default = null;
+ type = types.nullOr types.lines;
example = ''
tcp-port = 655
udp-port = 655
@@ -72,6 +74,7 @@ in
};
configFile = mkOption {
default = null;
+ type = types.nullOr types.path;
example = "/root/my-gvpe-conf";
description = ''
GVPE config file, if already present
@@ -79,12 +82,14 @@ in
};
ipAddress = mkOption {
default = null;
+ type = types.nullOr types.str;
description = ''
IP address to assign to GVPE interface
'';
};
subnet = mkOption {
default = null;
+ type = types.nullOr types.str;
example = "10.0.0.0/8";
description = ''
IP subnet assigned to GVPE network
@@ -92,6 +97,7 @@ in
};
customIFSetup = mkOption {
default = "";
+ type = types.lines;
description = ''
Additional commands to apply in ifup script
'';