diff --git a/nixos/configuration.nix b/nixos/configuration.nix index da9cae1..72ab12b 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -7,6 +7,7 @@ { imports = [ # Include the results of the hardware scan. + "${builtins.fetchGit { url = "https://github.com/NixOS/nixos-hardware.git"; }}/lenovo/thinkpad/t14/amd/" ./hardware-configuration.nix ./zfs.nix ]; diff --git a/nixos/hardware-configuration.nix b/nixos/hardware-configuration.nix index 16502d4..1883953 100644 --- a/nixos/hardware-configuration.nix +++ b/nixos/hardware-configuration.nix @@ -19,6 +19,13 @@ "cryptd" ]; + # Wifi support + boot.extraModulePackages = [ config.boot.kernelPackages.rtw89 ]; + hardware.firmware = [ pkgs.rtw89-firmware ]; + + # For support of newer AMD GPUs, backlight and internal microphone + boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.13") pkgs.linuxPackages_latest; + boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ];