1 import ./make-test-python.nix ({ pkgs, ... } : {
3 meta = with pkgs.lib.maintainers; {
4 maintainers = [ evils ];
7 nodes.machine = { ... }: {
8 imports = [ ../modules/profiles/minimal.nix ];
9 hardware.fancontrol.enable = true;
10 hardware.fancontrol.config = ''
12 DEVPATH=hwmon1=devices/platform/dummy
14 FCTEMPS=hwmon1/device/pwm1=hwmon1/device/temp1_input
15 FCFANS=hwmon1/device/pwm1=hwmon1/device/fan1_input
16 MINTEMP=hwmon1/device/pwm1=25
17 MAXTEMP=hwmon1/device/pwm1=65
18 MINSTART=hwmon1/device/pwm1=150
19 MINSTOP=hwmon1/device/pwm1=0
23 # This configuration cannot be valid for the test VM, so it's expected to get an 'outdated' error.
26 # can't wait for unit fancontrol.service because it doesn't become active due to invalid config
27 # fancontrol.service is WantedBy multi-user.target
28 machine.wait_for_unit("multi-user.target")
30 "journalctl -eu fancontrol | tee /dev/stderr | grep 'Configuration appears to be outdated'"