Skip to content

Commit

Permalink
hardware/laptop: only enable config if flag is enabled
Browse files Browse the repository at this point in the history
Co-authored-by: Dillon Dixon <me@dillon.io>
Signed-off-by: Sumner Evans <me@sumnerevans.com>
  • Loading branch information
sumnerevans and Dillon Dixon committed May 22, 2024
1 parent 72b4e15 commit 50ffd01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/hardware/laptop.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{ lib, ... }: {
{ config, lib, ... }: {
options = {
hardware.isLaptop = lib.mkEnableOption "laptop-only configurations";
};

config = {
config = lib.mkIf config.hardware.isLaptop {
# Enable TLP for power management
services.tlp = {
enable = true;
Expand Down

0 comments on commit 50ffd01

Please sign in to comment.