Created
May 28, 2021 17:30
-
-
Save superherointj/35e00710dd170e247c7ec9feb948a14e to your computer and use it in GitHub Desktop.
nvidia-desktop-gtx-780ti.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services = { | |
xserver = { | |
enable = true; | |
videoDrivers = [ "intel" "nvidia" ]; | |
config = '' | |
Section "Device" | |
Identifier "Intel Graphics" | |
Driver "intel" | |
Option "TearFree" "true" | |
EndSection | |
Section "Device" | |
Identifier "GeForce GTX 780 Ti" | |
Driver "nvidia" | |
BusId "PCI:1:0:0" | |
Option "TearFree" "true" | |
EndSection | |
''; | |
}; | |
}; |
boot.plymouth.enable = true;
services.xserver = {
desktopManager.xterm.enable = false;
enable = true;
layout = "us";
xkbVariant = "intl";
# xkbModel = "pc104";
# xkbOptions = "grp:alt_shift_toggle";
deviceSection = ''
Option "TearFree" "true"
'';
windowManager.i3 = {
enable = true;
package = pkgs.i3-gaps;
};
displayManager = {
lightdm.enable = true;
autoLogin.enable = true;
autoLogin.user = "intj";
};
};
# Compositor (supposedly fixes screen tearing).
services.compton.enable = true;
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.