summaryrefslogtreecommitdiff
path: root/hosts/office-precision
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-07-28 18:28:25 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-07-28 18:28:25 -0500
commit9d5ebd7f408f0e32c314003eed8b64bb1ca7f947 (patch)
tree027628dbba4122656244c91c6330a4b5dc4f65fd /hosts/office-precision
parent052d7036cd077eeb265ebf47159d148cd75ef0fd (diff)
downloadnixos-9d5ebd7f408f0e32c314003eed8b64bb1ca7f947.tar.xz
nixos-9d5ebd7f408f0e32c314003eed8b64bb1ca7f947.zip
change gpu to nvidia on office-precisionHEADmaster
Diffstat (limited to 'hosts/office-precision')
-rw-r--r--hosts/office-precision/configuration.nix20
1 files changed, 18 insertions, 2 deletions
diff --git a/hosts/office-precision/configuration.nix b/hosts/office-precision/configuration.nix
index ef7c71c..95b4a0a 100644
--- a/hosts/office-precision/configuration.nix
+++ b/hosts/office-precision/configuration.nix
@@ -46,8 +46,24 @@
# Disable suspend
systemd._suspend.disable = true;
- # Use amdgpu driver for x11
- services.xserver.videoDrivers = [ "amdgpu" ];
+ # Allow unfree for nvidia
+ nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
+ "nvidia-kernel-modules"
+ "nvidia-settings"
+ "nvidia-x11"
+ ];
+
+ # Use nvidia driver
+ services.xserver.videoDrivers = [ "nvidia" ];
+ hardware.nvidia = {
+ modesetting.enable = true; # Required
+ powerManagement.enable = false; # Can cause bugs
+ powerManagement.finegrained = false; # Only works on turing and newer
+ nvidiaSettings = true;
+ open = false; # Not compatible w/ GTX-1030
+ package = config.boot.kernelPackages.nvidiaPackages.legacy_580;
+ forceFullCompositionPipeline = true; # Enables vsync
+ };
# Configure home
home-manager.users.timmy = {