nixos: Respect nixpkgs.overlays (#22221)

authored by Aneesh Agrawal and committed by Franz Pletz 68b4a1f6 d409d239

+5 -11
+5 -11
nixos/modules/misc/nixpkgs.nix
··· 45 45 in 46 46 47 47 { 48 - options = { 49 - 50 - nixpkgs.config = mkOption { 48 + options.nixpkgs = { 49 + config = mkOption { 51 50 default = {}; 52 51 example = literalExample 53 52 '' ··· 61 60 ''; 62 61 }; 63 62 64 - nixpkgs.overlays = mkOption { 63 + overlays = mkOption { 65 64 default = []; 66 65 example = literalExample 67 66 '' ··· 85 84 ''; 86 85 }; 87 86 88 - nixpkgs.system = mkOption { 87 + system = mkOption { 89 88 type = types.str; 90 89 example = "i686-linux"; 91 90 description = '' ··· 95 94 multi-platform deployment, or when building virtual machines. 96 95 ''; 97 96 }; 98 - 99 97 }; 100 98 101 99 config = { 102 - _module.args.pkgs = import ../../.. { 103 - system = config.nixpkgs.system; 104 - 105 - inherit (config.nixpkgs) config; 106 - }; 100 + _module.args.pkgs = import ../../.. config.nixpkgs; 107 101 }; 108 102 }