2021-11-01 20:33:21 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
2021-07-29 20:21:51 +00:00
|
|
|
|
|
|
|
# Special options for mobile devices
|
2021-11-01 20:33:21 +00:00
|
|
|
let
|
|
|
|
cfg = config.ptw.hardware.mobile;
|
|
|
|
in {
|
|
|
|
options.ptw.hardware.mobile = {
|
|
|
|
enable = lib.mkEnableOption "Enable support for mobile devices";
|
|
|
|
};
|
2021-07-29 20:21:51 +00:00
|
|
|
|
2021-11-01 20:33:21 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
# Battery savings
|
|
|
|
#services.tlp.enable = true;
|
|
|
|
|
|
|
|
hardware.sensor.iio.enable = true;
|
|
|
|
};
|
2021-07-29 20:21:51 +00:00
|
|
|
}
|