Compare commits
No commits in common. "81c293621e312dc7288e429b9a2683f2027d1304" and "97a4ca6fb75ff14a03db573cbd6d696f0f0a5e99" have entirely different histories.
81c293621e
...
97a4ca6fb7
2 changed files with 34 additions and 2 deletions
|
@ -10,7 +10,39 @@
|
||||||
environment.systemPackages = with pkgs; [ powertop brightnessctl ];
|
environment.systemPackages = with pkgs; [ powertop brightnessctl ];
|
||||||
|
|
||||||
services.libinput.enable = true;
|
services.libinput.enable = true;
|
||||||
services.power-profiles-daemon.enable = true;
|
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(final: prev: {
|
||||||
|
tlp = prev.tlp.overrideAttrs (old: {
|
||||||
|
makeFlags = (old.makeFlags or [ ]) ++ [
|
||||||
|
"TLP_ULIB=/lib/udev"
|
||||||
|
"TLP_NMDSP=/lib/NetworkManager/dispatcher.d"
|
||||||
|
"TLP_SYSD=/lib/systemd/system"
|
||||||
|
"TLP_SDSL=/lib/systemd/system-sleep"
|
||||||
|
"TLP_ELOD=/lib/elogind/system-sleep"
|
||||||
|
"TLP_CONFDPR=/share/tlp/deprecated.conf"
|
||||||
|
"TLP_FISHCPL=/share/fish/vendor_completions.d"
|
||||||
|
"TLP_ZSHCPL=/share/zsh/site-functions"
|
||||||
|
];
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
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 = 100;
|
||||||
|
CPU_MAX_PERF_ON_AC = 100;
|
||||||
|
CPU_MIN_PERF_ON_BAT = 20;
|
||||||
|
CPU_MAX_PERF_ON_BAT = 100;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs.bash.promptInit = ''
|
programs.bash.promptInit = ''
|
||||||
if [ "$(whoami)" = root ]; then
|
if [ "$(whoami)" = root ]; then
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
programs.niri.settings = {
|
programs.niri.settings = {
|
||||||
input.keyboard.xkb.layout = "us";
|
input.keyboard.xkb.layout = "us";
|
||||||
outputs."HDMI-A-1".scale = 1;
|
outputs."HDMI-1".scale = 1;
|
||||||
layout.border.active.color = "#d966ff";
|
layout.border.active.color = "#d966ff";
|
||||||
binds = with config.lib.niri.actions; {
|
binds = with config.lib.niri.actions; {
|
||||||
"Mod+1".action = focus-workspace 1;
|
"Mod+1".action = focus-workspace 1;
|
||||||
|
|
Loading…
Reference in a new issue