Compare commits
3 commits
e215f7aa1d
...
8c298c26f9
Author | SHA1 | Date | |
---|---|---|---|
Bruno BELANYI | 8c298c26f9 | ||
Bruno BELANYI | 55a04cfac3 | ||
Bruno BELANYI | 1783c2838b |
|
@ -13,6 +13,10 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
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
|
# Keep charge between 60% and 80% to preserve battery life
|
||||||
START_CHARGE_THRESH_BAT0 = 60;
|
START_CHARGE_THRESH_BAT0 = 60;
|
||||||
STOP_CHARGE_THRESH_BAT0 = 80;
|
STOP_CHARGE_THRESH_BAT0 = 80;
|
||||||
|
|
|
@ -11,6 +11,7 @@ prompt_pass() {
|
||||||
}
|
}
|
||||||
|
|
||||||
error_out() {
|
error_out() {
|
||||||
|
printf '%s\n' "$1" >&2
|
||||||
rofi -dmenu -no-fixed-num-lines -p "$1"
|
rofi -dmenu -no-fixed-num-lines -p "$1"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
{ lib, fetchFromGitHub, stdenvNoCC }:
|
{ lib, fetchFromGitHub, stdenvNoCC }:
|
||||||
stdenvNoCC.mkDerivation rec {
|
stdenvNoCC.mkDerivation rec {
|
||||||
pname = "unified-hosts-lists";
|
pname = "unified-hosts-lists";
|
||||||
version = "3.6.4";
|
version = "3.8.5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "StevenBlack";
|
owner = "StevenBlack";
|
||||||
repo = "hosts";
|
repo = "hosts";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-U6vRwbFSYka2VS8M1z0n+FaTkKKwdV/cCWIKxp487/I=";
|
sha256 = "sha256-7oYuGegrHVUvAvA16iR8OEe5eTMeSybShSa1PJOe5No=";
|
||||||
};
|
};
|
||||||
|
|
||||||
phases = [ "installPhase" ];
|
phases = [ "installPhase" ];
|
||||||
|
|
Loading…
Reference in a new issue