Completed centralized update

This commit is contained in:
Filippo Berto 2021-06-14 07:01:37 +02:00
parent ef5b48d142
commit 83c9c72688
15 changed files with 328 additions and 138 deletions

24
nixos/nvidia.nix Normal file
View file

@ -0,0 +1,24 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
imports =
[
<nixos-hardware/common/cpu/intel>
./base.nix
];
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.prime = {
offload.enable = false;
sync.enable = true;
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
# hardware.nvidia.modesetting.enable = true;
# hardware.nvidia.package = pkgs.linuxPackages.nvidia_x11;
hardware.opengl.driSupport32Bit = true;
}