2005
0be41fd01a
its kind of uneven right now thats kind of bothering me but I'll add more modules new keybinds and scripts for timewarrior (i3, polybar)
41 lines
849 B
Nix
Executable file
41 lines
849 B
Nix
Executable file
{ pkgs
|
|
, config
|
|
, ...
|
|
}:
|
|
|
|
let
|
|
# nvidia package to patch
|
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
in
|
|
{
|
|
hardware.opengl = {
|
|
enable = true;
|
|
driSupport = true;
|
|
driSupport32Bit = true;
|
|
};
|
|
|
|
# TODO fix hybrid optimus shit mode... add "intel" for inner display to work
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
|
|
|
|
nixpkgs.config.cudaSupport = true;
|
|
hardware.nvidia = {
|
|
modesetting.enable = true;
|
|
prime =
|
|
{
|
|
sync.enable = false;
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
intelBusId = "PCI:0:2:0";
|
|
};
|
|
|
|
powerManagement.enable = false;
|
|
powerManagement.finegrained = false;
|
|
open = false;
|
|
nvidiaSettings = true;
|
|
package = pkgs.nvidia-patch.patch-nvenc (pkgs.nvidia-patch.patch-fbc package);
|
|
#package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
};
|
|
}
|
|
|
|
|