vaccaria: fancontrol
This commit is contained in:
		
							parent
							
								
									753b088ed6
								
							
						
					
					
						commit
						5fce6b1b39
					
				@ -31,9 +31,12 @@
 | 
			
		||||
    tokei loc
 | 
			
		||||
    ripgrep
 | 
			
		||||
    imagemagick
 | 
			
		||||
    mercurial
 | 
			
		||||
 | 
			
		||||
    androidenv.platformTools # adb & fastboot
 | 
			
		||||
 | 
			
		||||
    lm_sensors
 | 
			
		||||
 | 
			
		||||
    pdfpc
 | 
			
		||||
 | 
			
		||||
    # haskell dev
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										21
									
								
								vaccaria.nix
									
									
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										21
									
								
								vaccaria.nix
									
									
									
									
									
								
							@ -68,4 +68,25 @@
 | 
			
		||||
    samba
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  # fancontrol
 | 
			
		||||
  boot.kernelModules = ["it87"];
 | 
			
		||||
  systemd.services.fancontrol =
 | 
			
		||||
    let fancontrolConfig = pkgs.writeText "fancontrol" ''
 | 
			
		||||
      # Configuration file generated by pwmconfig, changes will be lost
 | 
			
		||||
      INTERVAL=10
 | 
			
		||||
      DEVPATH=hwmon0=devices/pci0000:00/0000:00:18.3 hwmon2=devices/platform/it87.552
 | 
			
		||||
      DEVNAME=hwmon0=k10temp hwmon2=it8720
 | 
			
		||||
      FCTEMPS=hwmon2/pwm3=hwmon0/temp1_input hwmon2/pwm1=hwmon0/temp1_input
 | 
			
		||||
      FCFANS=hwmon2/pwm3=hwmon2/fan1_input hwmon2/pwm1=hwmon2/fan1_input
 | 
			
		||||
      MINTEMP=hwmon2/pwm3=40 hwmon2/pwm1=40
 | 
			
		||||
      MAXTEMP=hwmon2/pwm3=65 hwmon2/pwm1=65
 | 
			
		||||
      MINSTART=hwmon2/pwm3=150 hwmon2/pwm1=150
 | 
			
		||||
      MINSTOP=hwmon2/pwm3=0 hwmon2/pwm1=100
 | 
			
		||||
    ''; in {
 | 
			
		||||
    description = "fancontrol from lm_sensors";
 | 
			
		||||
    wantedBy = ["multi-user.target"];
 | 
			
		||||
    serviceConfig.ExecStart = "${pkgs.lm_sensors}/bin/fancontrol ${fancontrolConfig}";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user