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
1 changed files with 1 additions and 4 deletions
|
@ -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