diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-07-28 18:28:25 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-07-28 18:28:25 -0500 |
| commit | 9d5ebd7f408f0e32c314003eed8b64bb1ca7f947 (patch) | |
| tree | 027628dbba4122656244c91c6330a4b5dc4f65fd /hosts/office-precision/configuration.nix | |
| parent | 052d7036cd077eeb265ebf47159d148cd75ef0fd (diff) | |
| download | nixos-master.tar.xz nixos-master.zip | |
Diffstat (limited to 'hosts/office-precision/configuration.nix')
| -rw-r--r-- | hosts/office-precision/configuration.nix | 20 |
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 = { |
