mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 18:34:41 +00:00
nixos/kvmgt: fix driver option
extraModprobeConfig could be applied too late i.e. if the driver has been loaded in initrd, while the harddrive is still encrypted. Using a kernelParams works in all cases however.
This commit is contained in:
parent
285a98eff4
commit
85aae79ca1
|
@ -50,10 +50,7 @@ in {
|
|||
};
|
||||
|
||||
boot.kernelModules = [ "kvmgt" ];
|
||||
|
||||
boot.extraModprobeConfig = ''
|
||||
options i915 enable_gvt=1
|
||||
'';
|
||||
boot.kernelParams = [ "i915.enable_gvt=1" ];
|
||||
|
||||
systemd.paths = mapAttrs' (name: value:
|
||||
nameValuePair "kvmgt-${name}" {
|
||||
|
|
Loading…
Reference in a new issue