Disco: Add swap file, earlyoom
This commit is contained in:
		
							parent
							
								
									2494def822
								
							
						
					
					
						commit
						7d14f4a8df
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -172,6 +172,16 @@
 | 
			
		|||
        LidSwitchIgnoreInhibited = no
 | 
			
		||||
    '';
 | 
			
		||||
 | 
			
		||||
    services.earlyoom = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        enableNotifications = true;
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    swapDevices = [{
 | 
			
		||||
        device = "/swapfile";
 | 
			
		||||
        size = 16 * 1024;
 | 
			
		||||
    }];
 | 
			
		||||
 | 
			
		||||
    # This value determines the NixOS release from which the default
 | 
			
		||||
    # settings for stateful data, like file locations and database versions
 | 
			
		||||
    # on your system were taken. It‘s perfectly fine and recommended to leave
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue