Fix nvidia

This commit is contained in:
muon 2026-03-05 10:57:21 +00:00
parent 8ed52d243d
commit 9568bf4a6e

View file

@ -1,5 +1,10 @@
{ pkgs, lib, config, ... }: {
let cfg = config.mods.unfree.nvidia; pkgs,
lib,
config,
...
}: let
cfg = config.mods.unfree.nvidia;
in { in {
options.mods.unfree.nvidia = { options.mods.unfree.nvidia = {
enable = lib.mkEnableOption { enable = lib.mkEnableOption {
@ -7,7 +12,7 @@ in {
description = "enables proprietary nvidia drivers"; description = "enables proprietary nvidia drivers";
}; };
packages = lib.mkOption { packages = lib.mkOption {
default = [ "nvidia-x11" "nvidia-settings" ]; default = ["nvidia-x11" "nvidia-settings"];
description = "unfree packages"; description = "unfree packages";
}; };
driver = lib.mkOption { driver = lib.mkOption {
@ -23,7 +28,7 @@ in {
# enable32Bit = true; # enable32Bit = true;
# }; # };
services.xserver.videoDrivers = [ "nvidia" "nvidia-dkms" ]; services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = { hardware.nvidia = {
modesetting.enable = true; modesetting.enable = true;