From 02abf4ed0131237c25e0a10db50fa4c41a902a50 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sun, 14 Jul 2024 17:53:13 -0600 Subject: sys: final merge of dmz, hv into sys --- sys/hardware/laptop.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 sys/hardware/laptop.nix (limited to 'sys/hardware/laptop.nix') diff --git a/sys/hardware/laptop.nix b/sys/hardware/laptop.nix new file mode 100644 index 0000000..d9ba753 --- /dev/null +++ b/sys/hardware/laptop.nix @@ -0,0 +1,16 @@ +{ config, lib, ... }: +with lib; let + cfg = config.local.hardware.laptop; +in +{ + options.local.hardware.laptop = { + enable = mkEnableOption "laptop stuff"; + }; + + config = mkIf cfg.enable { + services = { + tlp.enable = true; + upower.enable = true; + }; + }; +} -- cgit v1.2.3