diff --git a/config/polybar/config.ini b/config/polybar/config.ini index de2bd33..fdf93e1 100644 --- a/config/polybar/config.ini +++ b/config/polybar/config.ini @@ -33,7 +33,7 @@ alert = #A54242 disabled = #707880 [bar/example] -monitor = HDMI-A-0 +#monitor = HDMI-A-0 width = 99% offset-x = 0.5% height = 16pt diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 93f7aec..ea13439 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -97,6 +97,7 @@ polybar picom-jonaburg git + lshw ]; # Some programs need SUID wrappers, can be configured further or are @@ -118,6 +119,39 @@ # Or disable the firewall altogether. 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 # (/run/current-system/configuration.nix). This is useful in case you # accidentally delete configuration.nix.