···514 };
515 in [ extraConfig ] ++ (map (x: x.value) defs);
516 prefix = [ "containers" name ];
0517 }).config;
518 };
519 };
···552 Setting `config.nixpkgs.pkgs = pkgs` speeds up the container evaluation
553 by reusing the system pkgs, but the `nixpkgs.config` option in the
554 container config is ignored in this case.
0000000000555 '';
556 };
557
···514 };
515 in [ extraConfig ] ++ (map (x: x.value) defs);
516 prefix = [ "containers" name ];
517+ inherit (config) specialArgs;
518 }).config;
519 };
520 };
···553 Setting `config.nixpkgs.pkgs = pkgs` speeds up the container evaluation
554 by reusing the system pkgs, but the `nixpkgs.config` option in the
555 container config is ignored in this case.
556+ '';
557+ };
558+559+ specialArgs = mkOption {
560+ type = types.attrsOf types.unspecified;
561+ default = {};
562+ description = lib.mdDoc ''
563+ A set of special arguments to be passed to NixOS modules.
564+ This will be merged into the `specialArgs` used to evaluate
565+ the NixOS configurations.
566 '';
567 };
568