Compare commits
	
		
			No commits in common. "5c8661da2c7420223ac2f73a2519a6a04dc15f5d" and "0557daaff1a6854b8e22781db03295733bed34af" have entirely different histories.
		
	
	
		
			5c8661da2c
			...
			0557daaff1
		
	
		
					 5 changed files with 17 additions and 35 deletions
				
			
		|  | @ -36,5 +36,6 @@ in | |||
|         }; | ||||
|       }; | ||||
|     }; | ||||
| 
 | ||||
|   }; | ||||
| } | ||||
|  |  | |||
|  | @ -117,6 +117,12 @@ in | |||
|             { | ||||
|               "$mod" = "SUPER"; | ||||
| 
 | ||||
|               env = [ | ||||
|                 "QT_AUTO_SCREEN_SCALE_FACTOR,1" | ||||
|                 "QT_QPA_PLATFORM,wayland;xcb" | ||||
|                 "QT_WAYLAND_DISABLE_WINDOWDECORATION,1" | ||||
|               ]; | ||||
| 
 | ||||
|               exec-once = [ | ||||
|                 "systemctl --user start hyprpolkitagent" | ||||
| 
 | ||||
|  | @ -310,19 +316,7 @@ in | |||
|     }; | ||||
| 
 | ||||
|     environment.sessionVariables = { | ||||
|       NIXOS_OZONE_WL = "1"; # Hint electron apps to use wayland | ||||
| 
 | ||||
|       XDG_CURRENT_DESKTOP = "Hyprland"; | ||||
|       XDG_SESSION_TYPE = "wayland"; | ||||
|       XDG_SESSION_DESKTOP = "Hyprland"; | ||||
| 
 | ||||
|       QT_AUTO_SCREEN_SCALE_FACTOR = "1"; | ||||
|       QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; | ||||
|       QT_QPA_PLATFORM = "wayland;xcb"; | ||||
| 
 | ||||
|       ELECTRON_OZONE_PLATFORM_HINT = "auto"; | ||||
| 
 | ||||
|       WLR_DRM_NO_ATOMIC = "1"; | ||||
|       NIXOS_OZONE_WL = "1"; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
|  | @ -32,22 +32,5 @@ in | |||
|     }; | ||||
| 
 | ||||
|     services.xserver.videoDrivers = [ "nvidia" ]; | ||||
|     boot.kernelParams = [ | ||||
|       "nvidia_drm.fbdev=1" | ||||
| 
 | ||||
|       # TODO: remove after https://github.com/NVIDIA/open-gpu-kernel-modules/pull/692 | ||||
|       # and similar are merged and build in nixpkgs-unstable. | ||||
|       # WARNING: this disables tty output and thus hides boot logs. | ||||
|       "initcall_blacklist=simpledrm_platform_driver_init" | ||||
|     ]; | ||||
| 
 | ||||
|     environment.sessionVariables = { | ||||
|       GBM_BACKEND = "nvidia-drm"; | ||||
|       __GLX_VENDOR_LIBRARY_NAME = "nvidia"; | ||||
|       LIBVA_DRIVER_NAME = "nvidia"; | ||||
|       __GL_GSYNC_ALLOWED = "1"; | ||||
|       __GL_VRR_ALLOWED = "0"; | ||||
|       NVD_BACKEND = "direct"; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
|  | @ -37,10 +37,6 @@ in | |||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   services.fail2ban = { | ||||
|     enable = true; | ||||
|   }; | ||||
| 
 | ||||
|   services.nginx = { | ||||
|     enable = true; | ||||
|     recommendedProxySettings = true; | ||||
|  | @ -77,7 +73,7 @@ in | |||
|     settings = { | ||||
|       server = { | ||||
|         DOMAIN = "git.${domainName}"; | ||||
|         ROOT_URL = "https://git.${domainName}"; | ||||
|         ROOT_URL = "http://git.${domainName}:${toString forgejoPort}"; | ||||
|         HTTP_PORT = forgejoPort; | ||||
|       }; | ||||
| 
 | ||||
|  |  | |||
|  | @ -48,6 +48,14 @@ in | |||
|           "Unknown-1, disable" | ||||
|         ]; | ||||
| 
 | ||||
|         env = [ | ||||
|           "LIBVA_DRIVER_NAME,nvidia" | ||||
|           "XDG_SESSION_TYPE,wayland" | ||||
|           "GBM_BACKEND,nvidia-drm" | ||||
|           "__GLX_VENDOR_LIBRARY_NAME,nvidia" | ||||
|           "NVD_BACKEND,direct" | ||||
|         ]; | ||||
| 
 | ||||
|         cursor = { | ||||
|           no_hardware_cursors = true; | ||||
|         }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue