nix-desktop/nixos/modules/nouveau.nix

22 lines
532 B
Nix
Raw Permalink Normal View History

2024-10-09 22:17:17 +00:00
# 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, ... }:
{
boot.kernelModules = [ "nouveau" ];
boot.blacklistedKernelModules = [ "nvidia" "nvidia_uvm" "nvidia_drm" "nvidia_modeset" ];
services.xserver.videoDrivers = ["nouveau"];
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
mesa
mesa.drivers
];
};
}