Inline settings from nixos-hardware for the ASUS ROG Strix G513
This commit is contained in:
parent
a02eaafaac
commit
65bac6adaf
2 changed files with 18 additions and 9 deletions
25
hardware.nix
25
hardware.nix
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
boot = {
|
||||
loader = {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
"sd_mod"
|
||||
];
|
||||
kernelModules = ["kvm-amd"];
|
||||
# kernelParams = ["amd_pstate=active"];
|
||||
kernelParams = ["amd_pstate=active"];
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
|
|
@ -29,17 +29,28 @@
|
|||
};
|
||||
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
|
||||
|
||||
hardware = {
|
||||
enableRedistributableFirmware = true;
|
||||
cpu.amd.updateMicrocode = true;
|
||||
opengl = {
|
||||
enable = true;
|
||||
driSupport32Bit = true;
|
||||
extraPackages = [pkgs.vaapiVdpau];
|
||||
};
|
||||
# nvidia.prime = {
|
||||
# amdgpuBusId = "PCI:05:00:0";
|
||||
# nvidiaBusId = "PCI:01:00:0";
|
||||
# };
|
||||
nvidia.prime = {
|
||||
offload = {
|
||||
enable = true;
|
||||
enableOffloadCmd = true;
|
||||
};
|
||||
amdgpuBusId = "PCI:05:00:0";
|
||||
nvidiaBusId = "PCI:01:00:0";
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
xserver.videoDrivers = ["nvidia"];
|
||||
tlp.enable = true;
|
||||
fstrim.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue