mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
nixos/initrd: add extraFirmwarePaths option (#391166)
This commit is contained in:
commit
b15e9e7d3d
5 changed files with 23 additions and 2 deletions
|
@ -19,6 +19,7 @@ let
|
|||
kernel = config.system.modulesTree;
|
||||
firmware = config.hardware.firmware;
|
||||
allowMissing = false;
|
||||
inherit (config.boot.initrd) extraFirmwarePaths;
|
||||
};
|
||||
|
||||
|
||||
|
@ -484,6 +485,14 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
boot.initrd.extraFirmwarePaths = mkOption {
|
||||
default = [ ];
|
||||
type = types.listOf types.str;
|
||||
description = ''
|
||||
Other firmware files (relative to `"''${config.hardware.firmware}/lib/firmware"`) to include in the final initrd we are building.
|
||||
'';
|
||||
};
|
||||
|
||||
boot.initrd.checkJournalingFS = mkOption {
|
||||
default = true;
|
||||
type = types.bool;
|
||||
|
|
|
@ -105,6 +105,7 @@ let
|
|||
kernel = config.system.modulesTree;
|
||||
firmware = config.hardware.firmware;
|
||||
allowMissing = false;
|
||||
inherit (config.boot.initrd) extraFirmwarePaths;
|
||||
};
|
||||
|
||||
initrdBinEnv = pkgs.buildEnv {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue