added automatic nix-store optimisation
This commit is contained in:
		
							parent
							
								
									d4f3f586c6
								
							
						
					
					
						commit
						fefa12b881
					
				
					 2 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -3,6 +3,7 @@
 | 
			
		|||
  imports = [
 | 
			
		||||
    ./autoupdate.nix
 | 
			
		||||
    ./garbage-collect.nix
 | 
			
		||||
    ./optimise.nix
 | 
			
		||||
  ];
 | 
			
		||||
  system.stateVersion = "23.11";
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										7
									
								
								hosts/common/optimise.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								hosts/common/optimise.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,7 @@
 | 
			
		|||
{ pkgs, ... }:
 | 
			
		||||
{
 | 
			
		||||
  nix.optimise = {
 | 
			
		||||
    automatic = true;
 | 
			
		||||
    dates = [ "05:00" ];
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue