1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat: use tlp instead of powertop

This commit is contained in:
oddlama 2023-02-11 15:16:57 +01:00
parent f7b0d11a97
commit ef3feef6db
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
3 changed files with 16 additions and 26 deletions

View file

@ -28,16 +28,9 @@
]; ];
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"]; boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
environment.systemPackages = with pkgs; [wireguard-tools powertop];
hardware = { hardware = {
video.hidpi.enable = true; video.hidpi.enable = true;
opengl.enable = true; opengl.enable = true;
}; };
services = {
fwupd.enable = true;
smartd.enable = true;
thermald.enable = true;
};
} }

View file

@ -21,11 +21,6 @@
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"]; boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"];
services = {
fwupd.enable = true;
smartd.enable = true;
};
services.home-assistant = { services.home-assistant = {
enable = true; enable = true;
extraComponents = ["default_config" "met" "zha"]; extraComponents = ["default_config" "met" "zha"];

View file

@ -1,17 +1,19 @@
{pkgs, ...}: { {pkgs, ...}: {
environment.systemPackages = with pkgs; [powertop]; services = {
services.physlock.enable = true; tlp.enable = true;
services.logind = { physlock.enable = true;
lidSwitch = "ignore"; logind = {
lidSwitchDocked = "ignore"; lidSwitch = "ignore";
lidSwitchExternalPower = "ignore"; lidSwitchDocked = "ignore";
extraConfig = '' lidSwitchExternalPower = "ignore";
HandlePowerKey=suspend extraConfig = ''
HandleSuspendKey=suspend HandlePowerKey=suspend
HandleHibernateKey=suspend HandleSuspendKey=suspend
PowerKeyIgnoreInhibited=yes HandleHibernateKey=suspend
SuspendKeyIgnoreInhibited=yes PowerKeyIgnoreInhibited=yes
HibernateKeyIgnoreInhibited=yes SuspendKeyIgnoreInhibited=yes
''; HibernateKeyIgnoreInhibited=yes
'';
};
}; };
} }