Work on nvidia stuff
This commit is contained in:
parent
0bae07a322
commit
0b731b7177
|
@ -33,7 +33,7 @@ alert = #A54242
|
||||||
disabled = #707880
|
disabled = #707880
|
||||||
|
|
||||||
[bar/example]
|
[bar/example]
|
||||||
monitor = HDMI-A-0
|
#monitor = HDMI-A-0
|
||||||
width = 99%
|
width = 99%
|
||||||
offset-x = 0.5%
|
offset-x = 0.5%
|
||||||
height = 16pt
|
height = 16pt
|
||||||
|
|
|
@ -97,6 +97,7 @@
|
||||||
polybar
|
polybar
|
||||||
picom-jonaburg
|
picom-jonaburg
|
||||||
git
|
git
|
||||||
|
lshw
|
||||||
];
|
];
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
|
@ -118,6 +119,39 @@
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
|
|
||||||
|
# Nvidia Drivers
|
||||||
|
hardware.opengl = {
|
||||||
|
enable = true;
|
||||||
|
driSupport = true;
|
||||||
|
driSupport32Bit = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.xserver.videoDrivers = ["nvidia"];
|
||||||
|
|
||||||
|
hardware.nvidia = {
|
||||||
|
modesetting.enable = true;
|
||||||
|
|
||||||
|
powerManagement.enable = false;
|
||||||
|
|
||||||
|
powerManagement.finegrained = false;
|
||||||
|
|
||||||
|
open = false;
|
||||||
|
|
||||||
|
nvidiaSettings = true;
|
||||||
|
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
|
|
||||||
|
prime = {
|
||||||
|
#offload = {
|
||||||
|
# enable = true;
|
||||||
|
# enableOffloadCmd = true;
|
||||||
|
#};
|
||||||
|
sync.enable = true;
|
||||||
|
amdgpuBusId = "PCI:6:0:0";
|
||||||
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Copy the NixOS configuration file and link it from the resulting system
|
# Copy the NixOS configuration file and link it from the resulting system
|
||||||
# (/run/current-system/configuration.nix). This is useful in case you
|
# (/run/current-system/configuration.nix). This is useful in case you
|
||||||
# accidentally delete configuration.nix.
|
# accidentally delete configuration.nix.
|
||||||
|
|
Loading…
Reference in a new issue