From 44c745ff5525a7dba50ae6b5c853ce623d720a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Santiago?= Date: Mon, 29 Apr 2024 22:10:54 -0400 Subject: [PATCH] Remove power management, support non-nix executables --- configuration.nix | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/configuration.nix b/configuration.nix index 327ba12..8236a32 100644 --- a/configuration.nix +++ b/configuration.nix @@ -11,25 +11,28 @@ # LUKS devices boot.initrd.luks.devices."luks-1ec6d49d-7a0b-4ac9-aaea-e8efc1c75ac0".device = "/dev/disk/by-uuid/1ec6d49d-7a0b-4ac9-aaea-e8efc1c75ac0"; - # Laptop power management - services.power-profiles-daemon.enable = false; - services.thermald.enable = true; - services.tlp = { - enable = true; - settings = { - CPU_SCALING_GOVERNOR_ON_AC = "performance"; - CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; - - CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; - CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; - - CPU_MIN_PERF_ON_AC = 0; - CPU_MAX_PERF_ON_AC = 100; - CPU_MIN_PERF_ON_BAT = 0; - CPU_MAX_PERF_ON_BAT = 20; - }; - }; - + # Support for non-Nix executables + programs.nix-ld.enable = true; + programs.nix-ld.libraries = with pkgs; [ + rustc + rust-analyzer + cargo + makeWrapper + clang + pkg-config + mold + expat + fontconfig + freetype + android-tools + libxkbcommon + libGL + wayland + xorg.libXcursor + xorg.libXrandr + xorg.libXi + xorg.libX11 + ]; # Autoupgrade system.autoUpgrade = {