added storage optimization settings to optimise and gc the nix store.
This commit is contained in:
		
							parent
							
								
									02458fec21
								
							
						
					
					
						commit
						80ac00a7cf
					
				
					 2 changed files with 18 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -14,9 +14,15 @@
 | 
			
		|||
    lib.mkIf config.targets.genericLinux.enable
 | 
			
		||||
    {
 | 
			
		||||
      package = pkgs.nix;
 | 
			
		||||
      settings.experimental-features = ["nix-command" "flakes"];
 | 
			
		||||
      settings.max-jobs = "auto";
 | 
			
		||||
      gc.automatic = true;
 | 
			
		||||
      settings = {
 | 
			
		||||
        experimental-features = ["nix-command" "flakes"];
 | 
			
		||||
        max-jobs = "auto";
 | 
			
		||||
      };
 | 
			
		||||
      gc = {
 | 
			
		||||
        automatic = true;
 | 
			
		||||
        frequency = "weekly";
 | 
			
		||||
        options = "--delete-older-than 30d";
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../hostopts.nix
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue