fixed nvidia settings

This commit is contained in:
Richie Cahill 2024-06-13 22:10:33 -04:00 committed by Alice Huston
parent 13b6a97d74
commit 065f7eb3ea
3 changed files with 13 additions and 3 deletions

View File

@ -55,6 +55,7 @@
"fileroller",
"Filesystems",
"findbar",
"finegrained",
"fmask",
"formfill",
"foxundermoon",
@ -87,6 +88,7 @@
"lynis",
"mechatroner",
"mediainfo",
"modesetting",
"mousewheel",
"ncdu",
"nemo",

View File

@ -1,8 +1,16 @@
{ config, ... }:
{
services.xserver.videoDrivers = [ "nvidia" ];
hardware = {
nvidia.package = config.boot.kernelPackages.nvidiaPackages.production;
nvidia = {
modesetting.enable = true;
powerManagement = {
enable = true;
finegrained = true;
};
package = config.boot.kernelPackages.nvidiaPackages.production;
nvidiaSettings = true;
};
nvidia-container-toolkit.enable = true;
};
}

View File

@ -1,8 +1,8 @@
{ pkgs, ... }:
{
imports = [
./vscode
./firefox.nix
./vscode
];
home.packages = with pkgs; [