Compare commits

...

2 commits

Author SHA1 Message Date
0238ad32b9
Fix framework performance on AC 2023-06-19 17:58:42 +02:00
77e09e2191
Make z a zsh plugin 2023-06-19 14:19:44 +02:00
2 changed files with 14 additions and 8 deletions

View file

@ -26,6 +26,16 @@
prezto.enable = true; prezto.enable = true;
autocd = true; autocd = true;
plugins = [ plugins = [
{
name = "zsh-z";
file = "zsh-z.plugin.zsh";
src = pkgs.fetchFromGitHub {
owner = "agkozak";
repo = "zsh-z";
rev = "dc9e2bc0cdbaa0a507371c248d3dcc9f58db8726";
sha256 = "sha256-T0iZK9Tb7ExJaZ6e2UmwecnKHMQilwAPkyAa/uhqrw0=";
};
}
{ {
name = "zsh-nix-shell"; name = "zsh-nix-shell";
file = "nix-shell.plugin.zsh"; file = "nix-shell.plugin.zsh";
@ -38,11 +48,6 @@
} }
]; ];
initExtra = '' initExtra = ''
source ${pkgs.fetchurl {
url = "https://raw.githubusercontent.com/agkozak/zsh-z/master/zsh-z.plugin.zsh";
sha256 = "8be9f089d8bb596a2679f9127f37276a8c1aeba9b5047456923d49eb2af61156";
}}
# SSH agent # SSH agent
eval $(${pkgs.openssh}/bin/ssh-agent) > /dev/null eval $(${pkgs.openssh}/bin/ssh-agent) > /dev/null
trap 'test -n "$SSH_AUTH_SOCK" && eval $(${pkgs.openssh}/bin/ssh-agent -k)' 0 trap 'test -n "$SSH_AUTH_SOCK" && eval $(${pkgs.openssh}/bin/ssh-agent -k)' 0

View file

@ -22,8 +22,8 @@ in
]; ];
virtualisation = { virtualisation = {
#podman.enable = true; podman.enable = true;
#podman.dockerCompat = true; podman.dockerCompat = true;
# libvirtd.enable = true; # libvirtd.enable = true;
# spiceUSBRedirection.enable = true; # spiceUSBRedirection.enable = true;
}; };
@ -165,9 +165,10 @@ in
PCIE_ASPM_ON_BAT = "powersupersave"; PCIE_ASPM_ON_BAT = "powersupersave";
RUNTIME_PM_ON_BAT = "1"; RUNTIME_PM_ON_BAT = "1";
CPU_ENERGY_PERF_POLICY_ON_AC = "64"; CPU_ENERGY_PERF_POLICY_ON_AC = "balance_performance";
CPU_ENERGY_PERF_POLICY_ON_BAT = "balance_power"; CPU_ENERGY_PERF_POLICY_ON_BAT = "balance_power";
CPU_BOOST_ON_BAT = "0"; CPU_BOOST_ON_BAT = "0";
CPU_BOOST_ON_AC = "1";
CPU_HWP_DYN_BOOST_ON_BAT = "0"; CPU_HWP_DYN_BOOST_ON_BAT = "0";
SCHED_POWERSAVE_ON_BAT = "1"; SCHED_POWERSAVE_ON_BAT = "1";
NMI_WATCHDOG = "0"; NMI_WATCHDOG = "0";