mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 23:00:39 +02:00
chore: address trace warnings
This commit is contained in:
parent
9b25252bed
commit
3cb10af03c
3 changed files with 15 additions and 37 deletions
|
@ -9,20 +9,18 @@ lib.optionalAttrs (!minimal) {
|
||||||
services.xserver.videoDrivers = lib.mkForce ["nvidia"];
|
services.xserver.videoDrivers = lib.mkForce ["nvidia"];
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
nvidia = {
|
graphics = {
|
||||||
modesetting.enable = true;
|
|
||||||
nvidiaPersistenced = true;
|
|
||||||
nvidiaSettings = true;
|
|
||||||
open = true;
|
|
||||||
powerManagement.enable = true;
|
|
||||||
};
|
|
||||||
opengl = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
driSupport32Bit = true;
|
enable32Bit = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
vaapiVdpau
|
vaapiVdpau
|
||||||
nvidia-vaapi-driver
|
nvidia-vaapi-driver
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
nvidia = {
|
||||||
|
modesetting.enable = true;
|
||||||
|
open = true;
|
||||||
|
powerManagement.enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
inputs.nixos-hardware.nixosModules.common-cpu-amd
|
inputs.nixos-hardware.nixosModules.common-cpu-amd
|
||||||
inputs.nixos-hardware.nixosModules.common-cpu-amd-pstate
|
inputs.nixos-hardware.nixosModules.common-cpu-amd-pstate
|
||||||
inputs.nixos-hardware.nixosModules.common-pc
|
inputs.nixos-hardware.nixosModules.common-pc
|
||||||
inputs.nixos-hardware.nixosModules.common-pc-hdd
|
|
||||||
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
||||||
|
|
||||||
../../config
|
../../config
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
lib,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
@ -11,9 +10,10 @@
|
||||||
|
|
||||||
../../config
|
../../config
|
||||||
|
|
||||||
../../config/hardware/intel.nix
|
|
||||||
../../config/hardware/physical.nix
|
|
||||||
../../config/hardware/bluetooth.nix
|
../../config/hardware/bluetooth.nix
|
||||||
|
../../config/hardware/intel.nix
|
||||||
|
../../config/hardware/nvidia.nix
|
||||||
|
../../config/hardware/physical.nix
|
||||||
|
|
||||||
../../config/dev
|
../../config/dev
|
||||||
../../config/graphical
|
../../config/graphical
|
||||||
|
@ -39,31 +39,12 @@
|
||||||
|
|
||||||
# FIXME: fuck optional modules and make this more adjustable via settings
|
# FIXME: fuck optional modules and make this more adjustable via settings
|
||||||
graphical.gaming.enable = true;
|
graphical.gaming.enable = true;
|
||||||
boot.blacklistedKernelModules = ["nouveau"];
|
|
||||||
services.xserver.videoDrivers = lib.mkForce ["nvidia"];
|
|
||||||
|
|
||||||
hardware = {
|
hardware.nvidia.prime = {
|
||||||
nvidia = {
|
offload.enable = true;
|
||||||
prime = {
|
offload.enableOffloadCmd = true;
|
||||||
offload.enable = true;
|
intelBusId = "PCI:0:2:0";
|
||||||
offload.enableOffloadCmd = true;
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
intelBusId = "PCI:0:2:0";
|
|
||||||
nvidiaBusId = "PCI:1:0:0";
|
|
||||||
};
|
|
||||||
modesetting.enable = true;
|
|
||||||
nvidiaPersistenced = true;
|
|
||||||
nvidiaSettings = true;
|
|
||||||
open = false;
|
|
||||||
powerManagement.enable = false;
|
|
||||||
};
|
|
||||||
opengl = {
|
|
||||||
enable = true;
|
|
||||||
driSupport32Bit = true;
|
|
||||||
extraPackages = with pkgs; [
|
|
||||||
vaapiVdpau
|
|
||||||
nvidia-vaapi-driver
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
topology.self.icon = "devices.laptop";
|
topology.self.icon = "devices.laptop";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue