diff --git a/hosts/gampo/configuration.nix b/hosts/gampo/configuration.nix index 2a5befa..4ad2c4b 100644 --- a/hosts/gampo/configuration.nix +++ b/hosts/gampo/configuration.nix @@ -16,7 +16,6 @@ kernel = { cpuVendor = "intel"; package = pkgs.linuxPackages; - modules = ["i915"]; }; systemd-boot = true; }; diff --git a/system/boot/boot.nix b/system/boot/boot.nix index 7b354a9..02714c4 100644 --- a/system/boot/boot.nix +++ b/system/boot/boot.nix @@ -59,7 +59,11 @@ in { }; 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 = { systemd-boot.enable = cfg.systemd-boot; efi.canTouchEfiVariables = cfg.systemd-boot;