nixos/gvpe: add types
This commit is contained in:
parent
1752a175e8
commit
103ea99b99
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user