Move tlp into options
This commit is contained in:
parent
f9685049a8
commit
ed89695033
|
@ -18,6 +18,7 @@
|
|||
./restic-client-desktop
|
||||
./scripts
|
||||
./telegram-notifications
|
||||
./tlp
|
||||
./tmux
|
||||
./username
|
||||
./virtualbox-guest
|
||||
|
|
|
@ -1,10 +1,19 @@
|
|||
{ ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.services.az-tlp;
|
||||
in
|
||||
{
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
DEVICES_TO_DISABLE_ON_STARTUP = "bluetooth wifi wwan";
|
||||
DEVICES_TO_DISABLE_ON_BAT_NOT_IN_USE = "bluetooth wifi wwan";
|
||||
options = {
|
||||
services.az-tlp.enable = lib.mkEnableOption "Enable TLP";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
DEVICES_TO_DISABLE_ON_STARTUP = "bluetooth wifi wwan";
|
||||
DEVICES_TO_DISABLE_ON_BAT_NOT_IN_USE = "bluetooth wifi wwan";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
inputs.nixos-hardware.nixosModules.dell-precision-5530
|
||||
inputs.nixos-hardware.nixosModules.common-gpu-nvidia
|
||||
inputs.nixos-hardware.nixosModules.common-gpu-intel
|
||||
"${inputs.self}/modules/tlp"
|
||||
];
|
||||
boot.initrd.availableKernelModules = [
|
||||
"aesni_intel"
|
||||
|
@ -61,6 +60,7 @@
|
|||
az-logs-share.enable = true;
|
||||
az-rdp.enable = true;
|
||||
az-restic-client-desktop.enable = true;
|
||||
az-tlp.enable = true;
|
||||
az-x86.enable = true;
|
||||
};
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
inputs.nixos-hardware.nixosModules.common-gpu-intel
|
||||
inputs.nixos-hardware.nixosModules.common-pc-laptop
|
||||
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
||||
"${inputs.self}/modules/tlp"
|
||||
];
|
||||
boot.initrd.availableKernelModules = [
|
||||
"aesni_intel"
|
||||
|
@ -50,6 +49,7 @@
|
|||
services = {
|
||||
az-docker.enable = true;
|
||||
az-restic-client-desktop = true;
|
||||
az-tlp.enable = true;
|
||||
az-x86.enable = true;
|
||||
};
|
||||
virtualisation.virtualbox.host.enable = true;
|
||||
|
|
Loading…
Reference in New Issue