nix-config/modules/nixos/profiles/laptop/default.nix

24 lines
497 B
Nix
Raw Normal View History

2021-05-09 12:04:04 +02:00
{ config, lib, ... }:
let
cfg = config.my.profiles.laptop;
in
{
options.my.profiles.laptop = with lib; {
enable = mkEnableOption "laptop profile";
};
config = lib.mkIf cfg.enable {
# Enable touchpad support
services.xserver.libinput.enable = true;
2021-05-10 17:48:00 +02:00
2021-05-13 15:06:13 +02:00
# Enable TLP power management
my.services.tlp.enable = true;
2021-05-10 17:48:00 +02:00
# Enable upower power management
2021-05-29 16:44:34 +02:00
my.hardware.upower.enable = true;
2021-05-10 17:51:44 +02:00
# Enable battery notifications
my.home.power-alert.enable = true;
2021-05-09 12:04:04 +02:00
};
}