From 908c2d52dad4ad85e9b1115f85def0d89d51d382 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sat, 10 Aug 2024 16:58:29 -0700 Subject: [PATCH] feat: enable powertop auto-tune on laptops --- hosts/adrastea/default.nix | 2 ++ hosts/callisto/default.nix | 2 ++ 2 files changed, 4 insertions(+) diff --git a/hosts/adrastea/default.nix b/hosts/adrastea/default.nix index 8399218..cb49159 100755 --- a/hosts/adrastea/default.nix +++ b/hosts/adrastea/default.nix @@ -47,6 +47,8 @@ boot.initrd.luks.devices."luks-52d1be6d-b32f-41e0-a6d7-2ff52599fe7c".device = "/dev/disk/by-uuid/52d1be6d-b32f-41e0-a6d7-2ff52599fe7c"; + powerManagement.powertop.enable = true; + networking.hostName = "adrastea"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. diff --git a/hosts/callisto/default.nix b/hosts/callisto/default.nix index ddbea55..7471dcf 100755 --- a/hosts/callisto/default.nix +++ b/hosts/callisto/default.nix @@ -181,6 +181,8 @@ }; }; + powerManagement.powertop.enable = true; + # tells electron apps to use Wayland environment.sessionVariables.NIXOS_OZONE_WL = "1";