tlp: set acpi power profile

This commit is contained in:
Motiejus Jakštys 2024-04-15 10:26:24 +03:00 committed by Motiejus Jakštys
parent 3d8a720411
commit 647eb82d64

View File

@ -34,6 +34,14 @@ in {
udev.packages = [pkgs.yubikey-personalization];
acpid.enable = true;
pcscd.enable = true;
gnome.gnome-keyring.enable = true;
openssh.settings.X11Forwarding = true;
logind = {
powerKey = "suspend";
powerKeyLongPress = "poweroff";
};
printing = {
enable = true;
drivers = [
@ -43,19 +51,12 @@ in {
];
};
autorandr.enable = true;
avahi = {
enable = true;
nssmdns = true;
openFirewall = true;
};
openssh.settings.X11Forwarding = true;
logind.powerKey = "suspend";
logind.powerKeyLongPress = "poweroff";
xserver = {
enable = true;
layout = "us,lt";
@ -81,7 +82,13 @@ in {
pulse.enable = true;
};
gnome.gnome-keyring.enable = true;
tlp = {
enable = true;
settings = {
PLATFORM_PROFILE_ON_AC = "performance";
PLATFORM_PROFILE_ON_BAT = "balanced";
};
};
};
programs = {