build(nvidia): add nvidia driver support
This commit is contained in:
parent
ee0aa7c4a3
commit
6c9541f199
3 changed files with 27 additions and 5 deletions
12
systems/modules/nvidia.nix
Normal file
12
systems/modules/nvidia.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ pkgs, ... }: {
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
# TODO:
|
||||
# opencl
|
||||
nvidia-vaapi-driver # hardware acceleration
|
||||
];
|
||||
};
|
||||
# FIXME: hardware.nvidia.open = ;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue