Disaple suspend on gospel
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s
				
			This commit is contained in:
		
							parent
							
								
									61f8ecf26b
								
							
						
					
					
						commit
						6ddc91780f
					
				
					 2 changed files with 10 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -11,4 +11,5 @@
 | 
			
		|||
    monitor = [ "HDMI-A-1,preferred,auto,1.25" ];
 | 
			
		||||
  };
 | 
			
		||||
  aa.windowManagers.sway.enable = lib.mkForce false;
 | 
			
		||||
  aa.services.hypridle.suspendEnable = false;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -42,6 +42,13 @@ in
 | 
			
		|||
        Timeout in seconds before suspending the system
 | 
			
		||||
      '';
 | 
			
		||||
    };
 | 
			
		||||
    suspendEnable = mkOption {
 | 
			
		||||
      type = types.bool;
 | 
			
		||||
      default = true;
 | 
			
		||||
      description = ''
 | 
			
		||||
        Whether or not to automatically suspend
 | 
			
		||||
      '';
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    brightnessTimeout = mkOption {
 | 
			
		||||
      type = types.int;
 | 
			
		||||
| 
						 | 
				
			
			@ -99,10 +106,10 @@ in
 | 
			
		|||
            on-resume = "hyprctl dispatch dpms on && ${pkgs.brightnessctl}/bin/brightnessctl -r";
 | 
			
		||||
          }
 | 
			
		||||
          # Suspend system
 | 
			
		||||
          {
 | 
			
		||||
          (lib.mkIf cfg.suspendEnable {
 | 
			
		||||
            timeout = cfg.suspendTimeout;
 | 
			
		||||
            on-timeout = "systemctl suspend";
 | 
			
		||||
          }
 | 
			
		||||
          })
 | 
			
		||||
        ];
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue