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

View File

@@ -1,4 +1,4 @@
{ ... }: { pkgs, ... }:
{ {
boot = { boot = {
loader = { loader = {
@@ -13,7 +13,7 @@
"sd_mod" "sd_mod"
]; ];
kernelModules = ["kvm-amd"]; kernelModules = ["kvm-amd"];
# kernelParams = ["amd_pstate=active"]; kernelParams = ["amd_pstate=active"];
}; };
fileSystems = { fileSystems = {
@@ -36,10 +36,21 @@
opengl = { opengl = {
enable = true; enable = true;
driSupport32Bit = true; driSupport32Bit = true;
extraPackages = [pkgs.vaapiVdpau];
}; };
# nvidia.prime = { nvidia.prime = {
# amdgpuBusId = "PCI:05:00:0"; offload = {
# nvidiaBusId = "PCI:01:00:0"; enable = true;
# }; enableOffloadCmd = true;
};
amdgpuBusId = "PCI:05:00:0";
nvidiaBusId = "PCI:01:00:0";
};
};
services = {
xserver.videoDrivers = ["nvidia"];
tlp.enable = true;
fstrim.enable = true;
}; };
} }