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:
Jörg Thalheim 2020-03-13 06:58:29 +00:00
parent 285a98eff4
commit 85aae79ca1
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -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}" {