mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 02:46:28 +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.kernelModules = [ "kvmgt" ];
|
||||||
|
boot.kernelParams = [ "i915.enable_gvt=1" ];
|
||||||
boot.extraModprobeConfig = ''
|
|
||||||
options i915 enable_gvt=1
|
|
||||||
'';
|
|
||||||
|
|
||||||
systemd.paths = mapAttrs' (name: value:
|
systemd.paths = mapAttrs' (name: value:
|
||||||
nameValuePair "kvmgt-${name}" {
|
nameValuePair "kvmgt-${name}" {
|
||||||
|
|
Loading…
Reference in a new issue