refactor: organizing some imports
This commit is contained in:
parent
c4f7a64329
commit
db319ed5af
8 changed files with 184 additions and 95 deletions
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue