anchor.diff:        '';
       };
   
  -    systemd.containers = mkOption {
  +    containers = mkOption {
         type = types.attrsOf (types.submodule (
           { config, options, name, ... }:
           {
  
positive.code:                         imports = [ ./container-login.nix ];
                        };
                      in [ extraConfig config.config ];
                    prefix = [ "systemd" "containers" name ];
                  }).config.system.build.toplevel;
                })
              ];
  
negative.code:           + "echo ${cfg.path}/bin/switch-to-configuration test "
            + "| ${pkgs.socat}/bin/socat unix:${cfg.root}/var/lib/root-shell.socket -'";
  
        }) config.containers;
  
      # Generate /etc/hosts entries for the containers.
      networking.extraHosts = concatStrings (mapAttrsToList (name: cfg: optionalString (cfg.localAddress != null)
        ''
          ${cfg.localAddress} ${name}.containers
        '') config.containers);
  
      environment.systemPackages = optional (config.containers != {}) nixos-container-shell;
  
    };
  }
  