[Hardware] Add good intel support and basic nvidia support

This commit is contained in:
Antoine Viallon 2022-01-25 12:08:10 +01:00
parent 7c6198be6f
commit 6322c89fb6
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
4 changed files with 44 additions and 13 deletions

View file

@ -1,8 +1,10 @@
{ config, pkgs, lib, ... }:
with lib;
let
inherit (cfg);
hardwareCfg = config.aviallon.hardware;
in
{
boot.initrd.kernelModules = [ "nouveau" ];
config = mkIf (hardwareCfg.gpuVendor == "nvidia") {
boot.initrd.kernelModules = [ "nouveau" ];
};
}