summary refs log tree commit diff
path: root/nixos/modules/tasks/network-interfaces.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/tasks/network-interfaces.nix')
-rw-r--r--nixos/modules/tasks/network-interfaces.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix
index 796da3020ed..d8522b6abba 100644
--- a/nixos/modules/tasks/network-interfaces.nix
+++ b/nixos/modules/tasks/network-interfaces.nix
@@ -14,14 +14,14 @@ let
 
       name = mkOption {
         example = "eth0";
-        type = types.uniq types.string;
+        type = types.str;
         description = "Name of the interface.";
       };
 
       ipAddress = mkOption {
         default = null;
         example = "10.0.0.1";
-        type = types.nullOr (types.uniq types.string);
+        type = types.nullOr (types.str);
         description = ''
           IP address of the interface.  Leave empty to configure the
           interface using DHCP.
@@ -41,7 +41,7 @@ let
       subnetMask = mkOption {
         default = "";
         example = "255.255.255.0";
-        type = types.uniq types.string;
+        type = types.str;
         description = ''
           Subnet mask of the interface, specified as a bitmask.
           This is deprecated; use <option>prefixLength</option>
@@ -52,7 +52,7 @@ let
       macAddress = mkOption {
         default = null;
         example = "00:11:22:33:44:55";
-        type = types.nullOr (types.uniq types.string);
+        type = types.nullOr (types.str);
         description = ''
           MAC address of the interface. Leave empty to use the default.
         '';
@@ -72,7 +72,7 @@ let
 
       virtualOwner = mkOption {
         default = "root";
-        type = types.uniq types.string;
+        type = types.str;
         description = ''
           In case of a virtual device, the user who owns it.
         '';