Merge pull request #258447 from K900/fix-nixpkgs-config-references
treewide: use `pkgs.config` instead of `config.nixpkgs.config`
This commit is contained in:
commit
2b366c6c3c
3 changed files with 3 additions and 3 deletions
|
@ -69,7 +69,7 @@ in {
|
|||
})
|
||||
(mkIf cfg.enableAllFirmware {
|
||||
assertions = [{
|
||||
assertion = !cfg.enableAllFirmware || config.nixpkgs.config.allowUnfree;
|
||||
assertion = !cfg.enableAllFirmware || pkgs.config.allowUnfree;
|
||||
message = ''
|
||||
the list of hardware.enableAllFirmware contains non-redistributable licensed firmware files.
|
||||
This requires nixpkgs.config.allowUnfree to be true.
|
||||
|
|
|
@ -237,7 +237,7 @@ in
|
|||
# copy-pasted from the wrapper; TODO: figure out fix
|
||||
applicationName = cfg.package.binaryName or (lib.getName cfg.package);
|
||||
|
||||
nixpkgsConfig = config.nixpkgs.config.${applicationName} or {};
|
||||
nixpkgsConfig = pkgs.config.${applicationName} or {};
|
||||
optionConfig = cfg.wrapperConfig;
|
||||
nmhConfig = {
|
||||
enableBrowserpass = nmh.browserpass;
|
||||
|
|
|
@ -91,7 +91,7 @@ in
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable (mkMerge [{
|
||||
warnings = mkIf (config.nixpkgs.config.virtualbox.enableExtensionPack or false)
|
||||
warnings = mkIf (pkgs.config.virtualbox.enableExtensionPack or false)
|
||||
["'nixpkgs.virtualbox.enableExtensionPack' has no effect, please use 'virtualisation.virtualbox.host.enableExtensionPack'"];
|
||||
boot.kernelModules = [ "vboxdrv" "vboxnetadp" "vboxnetflt" ];
|
||||
boot.extraModulePackages = [ kernelModules ];
|
||||
|
|
Loading…
Reference in a new issue