profiles: put modules into folders

This commit is contained in:
Bruno BELANYI 2021-09-25 15:26:21 +02:00
parent b46b918295
commit f61f11ba29
7 changed files with 6 additions and 6 deletions

View file

@ -0,0 +1,23 @@
{ 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;
# Enable TLP power management
my.services.tlp.enable = true;
# Enable upower power management
my.hardware.upower.enable = true;
# Enable battery notifications
my.home.power-alert.enable = true;
};
}