···514514 };
515515 in [ extraConfig ] ++ (map (x: x.value) defs);
516516 prefix = [ "containers" name ];
517517+ inherit (config) specialArgs;
517518 }).config;
518519 };
519520 };
···552553 Setting `config.nixpkgs.pkgs = pkgs` speeds up the container evaluation
553554 by reusing the system pkgs, but the `nixpkgs.config` option in the
554555 container config is ignored in this case.
556556+ '';
557557+ };
558558+559559+ specialArgs = mkOption {
560560+ type = types.attrsOf types.unspecified;
561561+ default = {};
562562+ description = lib.mdDoc ''
563563+ A set of special arguments to be passed to NixOS modules.
564564+ This will be merged into the `specialArgs` used to evaluate
565565+ the NixOS configurations.
555566 '';
556567 };
557568