From 102659dda0ed4292d20a2055d19a258ef076fe35 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 1 Aug 2023 16:40:46 -0600 Subject: [PATCH] [NixOS] Enable tlp for jay-lenovo --- nixos/machines/jay-lenovo.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/nixos/machines/jay-lenovo.nix b/nixos/machines/jay-lenovo.nix index df49e1ef..82654404 100644 --- a/nixos/machines/jay-lenovo.nix +++ b/nixos/machines/jay-lenovo.nix @@ -1,6 +1,3 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. { config, lib, pkgs, ... }: { @@ -9,6 +6,11 @@ ../kat.nix ]; + environment.systemPackages = with pkgs; [ + linuxPackages_latest.perf + zenmonitor + ]; + hardware.enableRedistributableFirmware = true; boot.kernelPackages = pkgs.linuxPackages_latest; @@ -42,7 +44,8 @@ networking.hostName = "jay-lenovo"; - powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; + services.power-profiles-daemon.enable = false; + services.tlp.enable = true; system.stateVersion = "23.05"; }