diff --git a/nixos/modules/virtualisation/oci-containers.nix b/nixos/modules/virtualisation/oci-containers.nix
index a46dd65eb491..ee9fe62187d3 100644
--- a/nixos/modules/virtualisation/oci-containers.nix
+++ b/nixos/modules/virtualisation/oci-containers.nix
@@ -176,10 +176,10 @@ let
description = ''
Define which other containers this one depends on. They will be added to both After and Requires for the unit.
- Use the same name as the attribute under virtualisation.oci-containers.
+ Use the same name as the attribute under virtualisation.oci-containers.containers.
'';
example = literalExample ''
- virtualisation.oci-containers = {
+ virtualisation.oci-containers.containers = {
node1 = {};
node2 = {
dependsOn = [ "node1" ];