File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 124124 kernelModules = [ ] ;
125125 supportedFilesystems = [ "zfs" ] ;
126126 } ;
127- kernelModules = [ "dm-snapshot" "kvm-intel" ] ;
127+ kernelModules = [ "dm-snapshot" "kvm-intel" "nvidia" ] ;
128128 supportedFilesystems = [ "zfs" ] ;
129- extraModulePackages = [ ] ;
129+ extraModulePackages = [ config . boot . kernelPackages . nvidia_x11 ] ;
130130 } ;
131131
132132 environment . etc . "lukskey" = {
205205 }
206206 ] ;
207207
208+ services . xserver . videoDrivers = [ "nvidia" ] ;
209+ hardware . opengl = {
210+ enable = true ;
211+ driSupport = true ;
212+ } ;
213+ environment . systemPackages = with pkgs ; [
214+ config . hardware . nvidia . package
215+ cudatoolkit
216+ nvtop
217+ ] ;
218+
208219 services . zfs = {
209220 autoScrub . enable = true ;
210221 trim . enable = true ;
You can’t perform that action at this time.
0 commit comments