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