mirror of
https://github.com/youwen5/nixos.git
synced 2025-01-18 05:02:10 -08:00
fix: move tlp and light configurations to the right place
This commit is contained in:
parent
4314399a1c
commit
d66cce9fa1
2 changed files with 3 additions and 2 deletions
|
@ -25,8 +25,6 @@ in
|
|||
};
|
||||
|
||||
config = {
|
||||
services.tlp.enable = lib.mkIf (cfg.formFactor == "laptop") true;
|
||||
programs.light.enable = lib.mkIf (cfg.formFactor == "laptop") true;
|
||||
assertions = [
|
||||
{
|
||||
assertion = cfg.formFactor != null;
|
||||
|
|
|
@ -183,6 +183,9 @@ in
|
|||
|
||||
programs.fish.enable = true;
|
||||
|
||||
services.tlp.enable = lib.mkIf (cfg.formFactor == "laptop") true;
|
||||
programs.light.enable = lib.mkIf (cfg.formFactor == "laptop") true;
|
||||
|
||||
hardware.bluetooth = lib.mkIf cfg.bluetooth.enable {
|
||||
enable = true;
|
||||
powerOnBoot = true;
|
||||
|
|
Loading…
Reference in a new issue