From 1783c2838b4e7c8c151e5756429ccf2ba3cc96ba Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 31 Jul 2021 16:56:20 +0200 Subject: [PATCH 1/3] modules: services: tlp: add power scaling --- modules/services/tlp.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/services/tlp.nix b/modules/services/tlp.nix index a560319..8c9edd6 100644 --- a/modules/services/tlp.nix +++ b/modules/services/tlp.nix @@ -13,6 +13,10 @@ in enable = true; settings = { + # Set CPU scaling aggressively when power is not an issue + CPU_SCALING_GOVERNOR_ON_AC = "performance"; + CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + # Keep charge between 60% and 80% to preserve battery life START_CHARGE_THRESH_BAT0 = 60; STOP_CHARGE_THRESH_BAT0 = 80; From 55a04cfac371769fb6dbdacf78a92c5d04b89c80 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 31 Jul 2021 20:17:37 +0200 Subject: [PATCH 2/3] pkgs: bw-pass: report errors to stderr Useful in case the script can't prompt using `rofi`. --- pkgs/bw-pass/bw-pass | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/bw-pass/bw-pass b/pkgs/bw-pass/bw-pass index 3fddf1f..124714a 100755 --- a/pkgs/bw-pass/bw-pass +++ b/pkgs/bw-pass/bw-pass @@ -11,6 +11,7 @@ prompt_pass() { } error_out() { + printf '%s\n' "$1" >&2 rofi -dmenu -no-fixed-num-lines -p "$1" exit 1 } From 8c298c26f9a7e12ba5aeb7ca6fe52b1e09baba4a Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 7 Aug 2021 12:29:41 +0200 Subject: [PATCH 3/3] pkgs: unified-hosts-lists: 3.6.4 -> 3.8.5 --- pkgs/unified-hosts-lists/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/unified-hosts-lists/default.nix b/pkgs/unified-hosts-lists/default.nix index 4801ad0..9fb052a 100644 --- a/pkgs/unified-hosts-lists/default.nix +++ b/pkgs/unified-hosts-lists/default.nix @@ -1,13 +1,13 @@ { lib, fetchFromGitHub, stdenvNoCC }: stdenvNoCC.mkDerivation rec { pname = "unified-hosts-lists"; - version = "3.6.4"; + version = "3.8.5"; src = fetchFromGitHub { owner = "StevenBlack"; repo = "hosts"; rev = version; - sha256 = "sha256-U6vRwbFSYka2VS8M1z0n+FaTkKKwdV/cCWIKxp487/I="; + sha256 = "sha256-7oYuGegrHVUvAvA16iR8OEe5eTMeSybShSa1PJOe5No="; }; phases = [ "installPhase" ];