diff --git a/nixos/doc/manual/release-notes/rl-2009.xml b/nixos/doc/manual/release-notes/rl-2009.xml
index 3e29c19af8fb..955c19bd98e6 100644
--- a/nixos/doc/manual/release-notes/rl-2009.xml
+++ b/nixos/doc/manual/release-notes/rl-2009.xml
@@ -45,6 +45,11 @@
There is a new module for Podman(virtualisation.podman), a drop-in replacement for the Docker command line.
+
+
+ The new virtualisation.containers module manages configuration shared by the CRI-O and Podman modules.
+
+
diff --git a/nixos/modules/virtualisation/cri-o.nix b/nixos/modules/virtualisation/cri-o.nix
index a8ea611f624b..89ba9c3c6636 100644
--- a/nixos/modules/virtualisation/cri-o.nix
+++ b/nixos/modules/virtualisation/cri-o.nix
@@ -6,6 +6,10 @@ let
cfg = config.virtualisation.cri-o;
in
{
+ imports = [
+ (mkRenamedOptionModule [ "virtualisation" "cri-o" "registries" ] [ "virtualisation" "containers" "registries" "search" ])
+ ];
+
meta = {
maintainers = lib.teams.podman.members;
};
@@ -36,12 +40,6 @@ in
default = "/pause";
description = "Pause command to be executed";
};
-
- registries = mkOption {
- type = types.listOf types.str;
- default = [ "docker.io" "quay.io" ];
- description = "Registries to be configured for unqualified image pull";
- };
};
config = mkIf cfg.enable {
@@ -57,9 +55,6 @@ in
[crio.image]
pause_image = "${cfg.pauseImage}"
pause_command = "${cfg.pauseCommand}"
- registries = [
- ${concatMapStringsSep ", " (x: "\"" + x + "\"") cfg.registries}
- ]
[crio.network]
plugin_dirs = ["${pkgs.cni-plugins}/bin/"]