summaryrefslogtreecommitdiffstats
path: root/nixos/modules
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-02-01 09:59:09 +0800
committerGitHub <noreply@github.com>2023-02-01 09:59:09 +0800
commitf1a142c47661800906deefbadb28edd887d06995 (patch)
treeddb22a3f77f1d5a5f9d6e40986a9016968648131 /nixos/modules
parent57cbd074260e455f2a2a76413ef5e44dca2e0c71 (diff)
parented9cb58886509f830c7f3ed1974a25005dd54978 (diff)
Merge pull request #213602 from SuperSandro2000/types.string
nixos/virtualisation/*: replace deprecated types.string with types.str
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/virtualisation/amazon-options.nix4
-rw-r--r--nixos/modules/virtualisation/openstack-options.nix4
2 files changed, 4 insertions, 4 deletions
diff --git a/nixos/modules/virtualisation/amazon-options.nix b/nixos/modules/virtualisation/amazon-options.nix
index 926fe43b0ffe..3ea4a6cf7818 100644
--- a/nixos/modules/virtualisation/amazon-options.nix
+++ b/nixos/modules/virtualisation/amazon-options.nix
@@ -28,13 +28,13 @@ in {
options = {
mount = lib.mkOption {
description = lib.mdDoc "Where to mount this dataset.";
- type = types.nullOr types.string;
+ type = types.nullOr types.str;
default = null;
};
properties = lib.mkOption {
description = lib.mdDoc "Properties to set on this dataset.";
- type = types.attrsOf types.string;
+ type = types.attrsOf types.str;
default = {};
};
};
diff --git a/nixos/modules/virtualisation/openstack-options.nix b/nixos/modules/virtualisation/openstack-options.nix
index c71b581b02ca..52f45de92ecb 100644
--- a/nixos/modules/virtualisation/openstack-options.nix
+++ b/nixos/modules/virtualisation/openstack-options.nix
@@ -29,13 +29,13 @@ in
options = {
mount = lib.mkOption {
description = lib.mdDoc "Where to mount this dataset.";
- type = types.nullOr types.string;
+ type = types.nullOr types.str;
default = null;
};
properties = lib.mkOption {
description = lib.mdDoc "Properties to set on this dataset.";
- type = types.attrsOf types.string;
+ type = types.attrsOf types.str;
default = { };
};
};