1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2025-02-17 05:25:04 +01:00

fixed paths and forced video drivers

This commit is contained in:
caleb 2024-11-18 12:23:09 -05:00
parent ce8601a85a
commit 8ac932b399

View file

@ -5,7 +5,7 @@
}:
let
inherit (lib) mkDefault mkEnableOption mkIf mkMerge version versionAtLeast versionOlder;
inherit (lib) mkDefault mkEnableOption mkIf mkMerge mkForce version versionAtLeast versionOlder;
in {
imports = [
@ -15,8 +15,8 @@ in {
../../../common/pc/laptop
../../../common/pc/laptop/acpi_call.nix
../../../common/pc/ssd
../../../../common/gpu/nvidia/prime.nix
../../../../common/gpu/nvidia/ada-lovelace
../../../common/gpu/nvidia/prime.nix
../../../common/gpu/nvidia/ada-lovelace
];
config = mkMerge [
@ -43,7 +43,7 @@ in {
# Enable the Nvidia card, as well as Prime and Offload: NVIDIA GeForce RTX 4060 Mobile
boot.blacklistedKernelModules = [ "nouveau" ];
services.xserver.videoDrivers = mkDefault [ "nvidia" ];
services.xserver.videoDrivers = mkForce [ "amdgpu" "nvidia" ];
hardware = {
amdgpu.initrd.enable = mkDefault true;
@ -63,7 +63,7 @@ in {
powerManagement = {
enable = true;
finegrained = true
finegrained = true;
};
};
};