forked from rarias/jungle
		
	Program shutdown for August 2nd for all machines
Reviewed-by: Aleix Boné <abonerib@bsc.es>
This commit is contained in:
		
							parent
							
								
									b07929eab3
								
							
						
					
					
						commit
						d988ef2eff
					
				| @ -3,6 +3,7 @@ | ||||
|   # Includes the basic configuration for an Intel server. | ||||
|   imports = [ | ||||
|     ./base/agenix.nix | ||||
|     ./base/august-shutdown.nix | ||||
|     ./base/boot.nix | ||||
|     ./base/env.nix | ||||
|     ./base/fs.nix | ||||
|  | ||||
							
								
								
									
										13
									
								
								m/common/base/august-shutdown.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								m/common/base/august-shutdown.nix
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,13 @@ | ||||
| { | ||||
|   # Shutdown all machines on August 2nd at 11:00 AM, so we can protect the | ||||
|   # hardware from spurious electrical peaks on the yearly electrical cut for | ||||
|   # manteinance that starts on August 4th. | ||||
|   systemd.timers.august-shutdown = { | ||||
|     description = "Shutdown on August 2nd for maintenance"; | ||||
|     wantedBy = [ "timers.target" ]; | ||||
|     timerConfig = { | ||||
|       OnCalendar = "*-08-02 11:00:00"; | ||||
|       Unit = "systemd-poweroff.service"; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user