fix(gampo): early video drivers load
This commit is contained in:
@@ -16,7 +16,6 @@
|
|||||||
kernel = {
|
kernel = {
|
||||||
cpuVendor = "intel";
|
cpuVendor = "intel";
|
||||||
package = pkgs.linuxPackages;
|
package = pkgs.linuxPackages;
|
||||||
modules = ["i915"];
|
|
||||||
};
|
};
|
||||||
systemd-boot = true;
|
systemd-boot = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -59,7 +59,11 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config.boot = {
|
config.boot = {
|
||||||
initrd.kernelModules = lists.optional config.mySystem.hardware.amdgpu.enable "amdgpu";
|
initrd.kernelModules = lib.lists.singleton (
|
||||||
|
if config.mySystem.hardware.amdgpu.enable
|
||||||
|
then "amdgpu"
|
||||||
|
else "i915"
|
||||||
|
);
|
||||||
loader = {
|
loader = {
|
||||||
systemd-boot.enable = cfg.systemd-boot;
|
systemd-boot.enable = cfg.systemd-boot;
|
||||||
efi.canTouchEfiVariables = cfg.systemd-boot;
|
efi.canTouchEfiVariables = cfg.systemd-boot;
|
||||||
|
|||||||
Reference in New Issue
Block a user