From 971ffcae9bff15eb6ac6723b4d0bba7f7c54bf0f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 5 Apr 2022 17:51:47 -0700 Subject: create a profile for laptop --- profiles/laptop/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 profiles/laptop/default.nix (limited to 'profiles/laptop') diff --git a/profiles/laptop/default.nix b/profiles/laptop/default.nix new file mode 100644 index 0000000..f5288b6 --- /dev/null +++ b/profiles/laptop/default.nix @@ -0,0 +1,15 @@ +{ config, lib, ... }: +let cfg = config.my.profiles.laptop; +in { + options.my.profiles.laptop = with lib; { + enable = mkEnableOption "laptop profile"; + }; + + config = lib.mkIf cfg.enable { + # monitors and controls temperature + my.services.thermald.enable = true; + + # Enable TLP power management + my.services.tlp.enable = true; + }; +} -- cgit 1.4.1