diff options
author | Eric Sagnes <eric.sagnes@gmail.com> | 2016-11-16 22:37:57 +0900 |
---|---|---|
committer | Eric Sagnes <eric.sagnes@gmail.com> | 2016-11-16 22:37:57 +0900 |
commit | 0ebc5ec7cb2172063c2e9274327a9a7051641c13 (patch) | |
tree | b0787d9fe70b1c8e0105179905853c4c1ea00d76 /nixos | |
parent | 4a600b0437ab3933d189fdc99208cd1b88db9575 (diff) | |
download | nixlib-0ebc5ec7cb2172063c2e9274327a9a7051641c13.tar nixlib-0ebc5ec7cb2172063c2e9274327a9a7051641c13.tar.gz nixlib-0ebc5ec7cb2172063c2e9274327a9a7051641c13.tar.bz2 nixlib-0ebc5ec7cb2172063c2e9274327a9a7051641c13.tar.lz nixlib-0ebc5ec7cb2172063c2e9274327a9a7051641c13.tar.xz nixlib-0ebc5ec7cb2172063c2e9274327a9a7051641c13.tar.zst nixlib-0ebc5ec7cb2172063c2e9274327a9a7051641c13.zip |
network-interfaces: use enum
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/tasks/network-interfaces.nix | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix index 1faa8abd5f7f..aaa78daeb3a3 100644 --- a/nixos/modules/tasks/network-interfaces.nix +++ b/nixos/modules/tasks/network-interfaces.nix @@ -782,13 +782,12 @@ in }; type = mkOption { - type = types.string; + type = types.enum [ "managed" "ibss" "monitor" "mesh" "wds" ]; default = "managed"; example = "ibss"; description = '' - The type of the WLAN interface. The type has to be either <literal>managed</literal>, - <literal>ibss</literal>, <literal>monitor</literal>, <literal>mesh</literal> or <literal>wds</literal>. - Also, the type has to be supported by the underlying hardware of the device. + The type of the WLAN interface. + The type has to be supported by the underlying hardware of the device. ''; }; @@ -799,17 +798,11 @@ in }; flags = mkOption { - type = types.nullOr types.string; + type = with types; nullOr (enum [ "none" "fcsfail" "control" "otherbss" "cook" "active" ]); default = null; example = "control"; description = '' - Flags for interface of type <literal>monitor</literal>. The valid flags are: - none: no special flags - fcsfail: show frames with FCS errors - control: show control frames - otherbss: show frames from other BSSes - cook: use cooked mode - active: use active mode (ACK incoming unicast packets) + Flags for interface of type <literal>monitor</literal>. ''; }; |