refactor: inputs/ --> {sys,home}/
This commit is contained in:
		
							parent
							
								
									8f22a24963
								
							
						
					
					
						commit
						f77c627980
					
				
					 225 changed files with 77 additions and 88 deletions
				
			
		| 
						 | 
				
			
			@ -1,23 +0,0 @@
 | 
			
		|||
{ lib, config, ... }:
 | 
			
		||||
 | 
			
		||||
let
 | 
			
		||||
  features = config.systemModules.host.hardware.features;
 | 
			
		||||
  inherit (lib) mkIf;
 | 
			
		||||
  inherit (builtins) elem;
 | 
			
		||||
in
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  config = mkIf (elem "ssd" features) {
 | 
			
		||||
    services.fstrim = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
    };
 | 
			
		||||
    # only run fstrim while connected on AC
 | 
			
		||||
    systemd.services.fstrim = {
 | 
			
		||||
      unitConfig.ConditionACPower = true;
 | 
			
		||||
      serviceConfig = {
 | 
			
		||||
        Nice = 19;
 | 
			
		||||
        IOSchedulingClass = "idle";
 | 
			
		||||
      };
 | 
			
		||||
    }; 
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue