nixos/modules: Remove all usages of types.string
And replace them with a more appropriate type Also fix up some minor module problems along the way
This commit is contained in:
@@ -56,7 +56,7 @@ in
|
||||
|
||||
dns = mkOption {
|
||||
default = "1.1.1.1";
|
||||
type = types.string;
|
||||
type = types.str;
|
||||
description = ''
|
||||
Container DNS server.
|
||||
'';
|
||||
|
||||
@@ -337,7 +337,7 @@ let
|
||||
|
||||
networkOptions = {
|
||||
hostBridge = mkOption {
|
||||
type = types.nullOr types.string;
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "br0";
|
||||
description = ''
|
||||
@@ -387,7 +387,7 @@ let
|
||||
};
|
||||
|
||||
hostAddress6 = mkOption {
|
||||
type = types.nullOr types.string;
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "fc00::1";
|
||||
description = ''
|
||||
@@ -409,7 +409,7 @@ let
|
||||
};
|
||||
|
||||
localAddress6 = mkOption {
|
||||
type = types.nullOr types.string;
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "fc00::2";
|
||||
description = ''
|
||||
@@ -565,7 +565,7 @@ in
|
||||
};
|
||||
|
||||
interfaces = mkOption {
|
||||
type = types.listOf types.string;
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
example = [ "eth1" "eth2" ];
|
||||
description = ''
|
||||
|
||||
@@ -9,7 +9,7 @@ let
|
||||
|
||||
vgpuOptions = {
|
||||
uuid = mkOption {
|
||||
type = types.string;
|
||||
type = types.str;
|
||||
description = "UUID of VGPU device. You can generate one with <package>libossp_uuid</package>.";
|
||||
};
|
||||
};
|
||||
@@ -23,7 +23,7 @@ in {
|
||||
'';
|
||||
# multi GPU support is under the question
|
||||
device = mkOption {
|
||||
type = types.string;
|
||||
type = types.str;
|
||||
default = "0000:00:02.0";
|
||||
description = "PCI ID of graphics card. You can figure it with <command>ls /sys/class/mdev_bus</command>.";
|
||||
};
|
||||
|
||||
@@ -119,7 +119,7 @@ in
|
||||
|
||||
virtualisation.xen.domains = {
|
||||
extraConfig = mkOption {
|
||||
type = types.string;
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description =
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user