home: natto: restart ags 10s after failure
Signed-off-by: Amneesh Singh <amneesh@ti.com>
This commit is contained in:
		
							
								
								
									
										13
									
								
								home/amneesh/wayvnc.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								home/amneesh/wayvnc.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
{
 | 
			
		||||
  ...
 | 
			
		||||
}:
 | 
			
		||||
{
 | 
			
		||||
  services.wayvnc = rec {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    autoStart = enable;
 | 
			
		||||
    settings = {
 | 
			
		||||
      address = "0.0.0.0";
 | 
			
		||||
      port = 5901;
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
@@ -59,6 +59,7 @@ in
 | 
			
		||||
      Environment = "PATH=${lib.makeBinPath deps}";
 | 
			
		||||
      ExecStart = "${cfg.package}/bin/ags";
 | 
			
		||||
      Restart = "on-failure";
 | 
			
		||||
      RestartSec = 10;
 | 
			
		||||
    };
 | 
			
		||||
    Install.WantedBy = [ "graphical-session.target" ];
 | 
			
		||||
  };
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user