mirror of
https://codeberg.org/muon/home.git
synced 2026-03-08 03:25:16 +00:00
Fix nvidia
This commit is contained in:
parent
8ed52d243d
commit
9568bf4a6e
1 changed files with 9 additions and 4 deletions
|
|
@ -1,5 +1,10 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
let cfg = config.mods.unfree.nvidia;
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
cfg = config.mods.unfree.nvidia;
|
||||
in {
|
||||
options.mods.unfree.nvidia = {
|
||||
enable = lib.mkEnableOption {
|
||||
|
|
@ -7,7 +12,7 @@ in {
|
|||
description = "enables proprietary nvidia drivers";
|
||||
};
|
||||
packages = lib.mkOption {
|
||||
default = [ "nvidia-x11" "nvidia-settings" ];
|
||||
default = ["nvidia-x11" "nvidia-settings"];
|
||||
description = "unfree packages";
|
||||
};
|
||||
driver = lib.mkOption {
|
||||
|
|
@ -23,7 +28,7 @@ in {
|
|||
# enable32Bit = true;
|
||||
# };
|
||||
|
||||
services.xserver.videoDrivers = [ "nvidia" "nvidia-dkms" ];
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue