| 
									
										
										
										
											2025-03-25 13:49:10 -04:00
										 |  |  | { pkgs, ... }: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   # installs hyprland, and its dependencies | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   programs = { | 
					
						
							|  |  |  |     hyprland = { | 
					
						
							|  |  |  |       enable = true; | 
					
						
							|  |  |  |       xwayland.enable = true; | 
					
						
							|  |  |  |       withUWSM = true; | 
					
						
							|  |  |  |     }; | 
					
						
							|  |  |  |     hyprlock.enable = true; | 
					
						
							|  |  |  |     ydotool.enable = true; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  |   # Optional, hint electron apps to use wayland: | 
					
						
							|  |  |  |   environment.sessionVariables.NIXOS_OZONE_WL = "1"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   services = { | 
					
						
							| 
									
										
										
										
											2025-06-01 12:52:37 -04:00
										 |  |  |     displayManager.gdm = { | 
					
						
							| 
									
										
										
										
											2025-03-25 13:49:10 -04:00
										 |  |  |       enable = true; | 
					
						
							| 
									
										
										
										
											2025-06-01 12:52:37 -04:00
										 |  |  |       wayland = true; | 
					
						
							| 
									
										
										
										
											2025-03-25 13:49:10 -04:00
										 |  |  |     }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     dbus = { | 
					
						
							|  |  |  |       enable = true; | 
					
						
							|  |  |  |       implementation = "broker"; | 
					
						
							|  |  |  |     }; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   powerManagement = { | 
					
						
							|  |  |  |     enable = true; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   environment.systemPackages = with pkgs; [ | 
					
						
							|  |  |  |     libsForQt5.qt5.qtwayland | 
					
						
							|  |  |  |     qt6.qtwayland | 
					
						
							|  |  |  |   ]; | 
					
						
							|  |  |  | } |