Inline settings from nixos-hardware for the ASUS ROG Strix G513

This commit is contained in:
2024-06-11 14:56:53 -07:00
parent a02eaafaac
commit 65bac6adaf
2 changed files with 18 additions and 9 deletions

View File

@@ -1,7 +1,6 @@
{ config, lib, pkgs, ... }:
{
imports = [
<nixos-hardware/asus/rog-strix/g513im>
./hardware.nix
./networking.nix
./users.nix
@@ -23,7 +22,6 @@
services.xserver = {
enable = true;
#videoDrivers = ["nvidia" "amdgpu"];
desktopManager = {
cinnamon.enable = true;
xterm.enable = false;

View File

@@ -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 = {
@@ -36,10 +36,21 @@
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;
};
}