summaryrefslogtreecommitdiff
path: root/modules/root/tlp.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/root/tlp.nix')
-rw-r--r--modules/root/tlp.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/root/tlp.nix b/modules/root/tlp.nix
new file mode 100644
index 0000000..3414c03
--- /dev/null
+++ b/modules/root/tlp.nix
@@ -0,0 +1,9 @@
+{ lib, config, ... }: {
+ options = {
+ tlp.enable = lib.mkEnableOption "enables tlp";
+ };
+
+ config = lib.mkIf config.tlp.enable {
+ services.tlp.enable = true;
+ };
+}