Compare commits

...

3 commits

Author SHA1 Message Date
d4b19a279e put swappiness and governor in base
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 19s
2026-07-24 15:22:47 +07:00
c9f4ad0e13 revert brightness 2026-07-24 15:21:07 +07:00
5d538562d5 adjust value inc and dec 2026-07-23 19:21:00 +07:00
3 changed files with 9 additions and 9 deletions

View file

@ -1,7 +1,7 @@
{ pkgs, lib, hostname, ... }: {
programs.niri.settings.binds = {
"XF86AudioRaiseVolume" = { action.spawn = [ "wpctl" "set-volume" "-l" "1" "@DEFAULT_AUDIO_SINK@" "5%+" ]; allow-when-locked = true; };
"XF86AudioLowerVolume" = { action.spawn = [ "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%-" ]; allow-when-locked = true; };
"XF86AudioRaiseVolume" = { action.spawn = [ "wpctl" "set-volume" "-l" "1" "@DEFAULT_AUDIO_SINK@" "2%+" ]; allow-when-locked = true; };
"XF86AudioLowerVolume" = { action.spawn = [ "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "2%-" ]; allow-when-locked = true; };
"XF86AudioMute" = { action.spawn = [ "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle" ]; allow-when-locked = true; };
"XF86AudioMicMute" = { action.spawn = [ "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle" ]; allow-when-locked = true; };
"XF86MonBrightnessUp" = { action.spawn = [ "brightnessctl" "s" "10%+" ]; allow-when-locked = true; };
@ -23,10 +23,10 @@
"Mod+Shift+Down".action.move-window-down-or-to-workspace-down = {};
"Mod+Shift+Left".action.move-column-left = {};
"Mod+Shift+Right".action.move-column-right = {};
"Mod+Ctrl+Left".action.set-window-width = [ "-5%" ];
"Mod+Ctrl+Right".action.set-window-width = [ "+5%" ];
"Mod+Ctrl+Down".action.set-window-height = [ "+5%" ];
"Mod+Ctrl+Up".action.set-window-height = [ "-5%" ];
"Mod+Ctrl+Left".action.set-window-width = [ "-2%" ];
"Mod+Ctrl+Right".action.set-window-width = [ "+2%" ];
"Mod+Ctrl+Down".action.set-window-height = [ "+2%" ];
"Mod+Ctrl+Up".action.set-window-height = [ "-2%" ];
"Mod+G".action.center-column = {};
"Mod+F".action.toggle-window-floating = {};

View file

@ -16,6 +16,9 @@
i18n.defaultLocale = locale;
environment.localBinInPath = true;
powerManagement.cpuFreqGovernor = "powersave";
boot.kernel.sysctl."vm.swappiness" = 10; # only swap when necessary
security = {
polkit = {
enable = true;

View file

@ -6,9 +6,6 @@
];
nixpkgs.overlays = [ inputs.mc.overlay ];
powerManagement.cpuFreqGovernor = "powersave"; # performance governor causes overheating and thermal throttling, works fine with powesave
boot.kernel.sysctl."vm.swappiness" = 10; # reduce swap usage and keep memory performance smooth
services.minecraft-servers = {
# LOCK IN
enable = false;