30 lines
		
	
	
	
		
			785 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			785 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  flake.modules.homeManager.cholli =
 | 
						|
    { lib, osConfig, ... }:
 | 
						|
    {
 | 
						|
      config = lib.mkIf (osConfig.networking.hostName == "yggdrasil") {
 | 
						|
        services.hypridle = {
 | 
						|
          enable = true;
 | 
						|
          settings = {
 | 
						|
            general = {
 | 
						|
              after_sleep_cmd = "hyprctl dispatch dpms on";
 | 
						|
              ignore_dbus_inhibit = false;
 | 
						|
              lock_cmd = "hyprlock-blur";
 | 
						|
            };
 | 
						|
 | 
						|
            listener = [
 | 
						|
              {
 | 
						|
                timeout = 600;
 | 
						|
                on-timeout = "loginctl lock-session";
 | 
						|
              }
 | 
						|
              {
 | 
						|
                timeout = 1200;
 | 
						|
                on-timeout = "hyprctl dispatch dpms off";
 | 
						|
                on-resume = "hyprctl dispatch dpms on";
 | 
						|
              }
 | 
						|
            ];
 | 
						|
          };
 | 
						|
        };
 | 
						|
      };
 | 
						|
    };
 | 
						|
}
 |