Add weekly-rebuild timer
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Run nix flake check / flake-check (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Run nix flake check / flake-check (push) Has been cancelled
				
			This commit is contained in:
		| @@ -1,8 +1,10 @@ | ||||
| { ... }: { | ||||
| { ... }: | ||||
| { | ||||
|   imports = [ | ||||
|     ./sops.nix | ||||
|     ./root-user.nix | ||||
|     ./sshd.nix | ||||
|     ./monitoring.nix | ||||
|     ./weekly-rebuild.nix | ||||
|   ]; | ||||
| } | ||||
|   | ||||
							
								
								
									
										16
									
								
								system/weekly-rebuild.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								system/weekly-rebuild.nix
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| { pkgs, ... }: | ||||
| { | ||||
|   systemd.services."weekly-rebuild" = { | ||||
|     serviceConfig = { | ||||
|       Type = "oneshot"; | ||||
|       ExecStart = "${pkgs.bash}/bin/bash -c 'nixos-rebuild --boot --flake git+https://git.t-juice.club/torjus/nixos-servers'"; | ||||
|     }; | ||||
|   }; | ||||
|   systemd.timers."weekly-rebuild" = { | ||||
|     enable = true; | ||||
|     wantedBy = [ "timers.target" ]; | ||||
|     timerConfig = { | ||||
|       OnCalendar = "Sun 06:00:00"; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user