nixos/nixos-containers: add specialArgs option (#216677)

authored by Yureka and committed by GitHub c683aaaa 77517d46

+11
+11
nixos/modules/virtualisation/nixos-containers.nix
··· 514 514 }; 515 515 in [ extraConfig ] ++ (map (x: x.value) defs); 516 516 prefix = [ "containers" name ]; 517 + inherit (config) specialArgs; 517 518 }).config; 518 519 }; 519 520 }; ··· 552 553 Setting `config.nixpkgs.pkgs = pkgs` speeds up the container evaluation 553 554 by reusing the system pkgs, but the `nixpkgs.config` option in the 554 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. 555 566 ''; 556 567 }; 557 568