refactor: organizing some imports

This commit is contained in:
gwg313 2024-09-11 13:59:52 -04:00
parent c4f7a64329
commit db319ed5af
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
8 changed files with 184 additions and 95 deletions

View file

@ -1,8 +1,20 @@
{...}: {
{
config,
lib,
...
}: {
imports = [./bluetooth.nix];
# enable's backlight switching
programs.light.enable = true;
options = {
laptop.enable = lib.mkEnableOption "Enables Laptop options";
};
# use TLP for power management
services.tlp.enable = true;
config = lib.mkIf config.laptop.enable {
# enable's backlight switching
programs.light.enable = true;
# use TLP for power management
services.tlp.enable = true;
bluetooth.enable = true;
};
}