modules/tlp: Make optional via custom options

This commit is contained in:
fleaz 2023-12-01 16:44:14 +01:00
parent 339e7c4e9d
commit c23775319c
No known key found for this signature in database
GPG key ID: AED15F8FDD04D083
2 changed files with 8 additions and 1 deletions

View file

@ -5,4 +5,10 @@ options.my.highDPI = lib.mkOption {
default = true;
type = lib.types.bool;
};
options.my.includeTLP = lib.mkOption {
description = "If the device should get TLP";
default = true;
type = lib.types.bool;
};
}

View file

@ -1,5 +1,6 @@
{lib, config, ...}:
{
services.tlp = {
services.tlp = lib.mkIf config.my.includeTLP {
enable = true;
settings = {
TLP_DEFAULT_MODE = "AC";