nixos-config/modules/hardware/mobile.nix

18 lines
355 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2021-07-29 20:21:51 +00:00
# Special options for mobile devices
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
config = lib.mkIf cfg.enable {
# Battery savings
#services.tlp.enable = true;
hardware.sensor.iio.enable = true;
};
2021-07-29 20:21:51 +00:00
}