feat: add hyprland nvidia configuration for desktop
This commit is contained in:
		
							parent
							
								
									94a096bb6d
								
							
						
					
					
						commit
						bb41c51344
					
				
					 5 changed files with 20 additions and 1 deletions
				
			
		|  | @ -8,6 +8,11 @@ | |||
|   options.homeModules.desktop.wayland.windowManager = {  | ||||
|     hyprland = { | ||||
|       enable = lib.mkEnableOption "Enable Hyprland window-manager"; | ||||
|       nvidia = lib.mkOption { | ||||
|         type = lib.types.bool; | ||||
|         default = false; | ||||
|         description = "Apply Hyprland nvidia settings"; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,6 +1,7 @@ | |||
| { config, lib, ... }: | ||||
| let | ||||
|   cfg = config.homeModules.desktop.wayland.windowManager.hyprland; | ||||
|   pointer = config.home.pointerCursor; | ||||
| in | ||||
| { | ||||
|   config = lib.mkIf cfg.enable { | ||||
|  | @ -20,6 +21,10 @@ in | |||
|         }; | ||||
|         dwindle.split_width_multiplier = 1.35; | ||||
| 
 | ||||
|         exec-once = [ | ||||
|           "hyprctl setcursor ${pointer.name} ${toString pointer.size}" | ||||
|         ]; | ||||
| 
 | ||||
|         decoration = { | ||||
|           active_opacity = 1.0; | ||||
|           inactive_opacity = 1.0; | ||||
|  |  | |||
|  | @ -92,7 +92,7 @@ in | |||
|        | ||||
|       "SUPER,          Q,             killactive" | ||||
|       "SUPER CTRL,     backspace,     killactive" | ||||
|       "SUPERSHIFT ALT, delete,        exit" | ||||
|       "SUPERSHIFT ALT, delete,        exec, pkill Hyprland" | ||||
|       "SUPER,          F,             fullscreen" | ||||
|       "SUPER,          Space,         togglefloating" | ||||
|       "SUPER,          P,             pseudo" # dwindle | ||||
|  |  | |||
|  | @ -46,6 +46,14 @@ in | |||
|           disable_hyprland_logo = true; | ||||
|           force_default_wallpaper = 0; | ||||
|         }; | ||||
| 
 | ||||
|         env = lib.mkIf cfg.nvidia [ | ||||
|           "LIBVA_DRIVER_NAME,nvidia" | ||||
|           "XDG_SESSION_TYPE,wayland" | ||||
|           "GBM_BACKEND,nvidia-drm" | ||||
|           "__GLX_VENDEOR_LIBRARY_NAME,nvidia" | ||||
|           "WLR_NO_HARDWARE_CURSORS,1" | ||||
|         ]; | ||||
|          | ||||
|         gestures = { | ||||
|           workspace_swipe = true; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue