From 5d538562d57bb4a03e05db5481ce1ed9be7f1cde Mon Sep 17 00:00:00 2001 From: satr14 Date: Thu, 23 Jul 2026 19:21:00 +0700 Subject: [PATCH 1/3] adjust value inc and dec --- modules/home/rice/keybinds.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/home/rice/keybinds.nix b/modules/home/rice/keybinds.nix index 00041fe..71a7928 100644 --- a/modules/home/rice/keybinds.nix +++ b/modules/home/rice/keybinds.nix @@ -1,11 +1,11 @@ { 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; }; - "XF86MonBrightnessDown" = { action.spawn = [ "brightnessctl" "s" "10%-" ]; allow-when-locked = true; }; + "XF86MonBrightnessUp" = { action.spawn = [ "brightnessctl" "s" "2%+" ]; allow-when-locked = true; }; + "XF86MonBrightnessDown" = { action.spawn = [ "brightnessctl" "s" "2%-" ]; allow-when-locked = true; }; "Mod+Q".action.close-window = {}; "Mod+W".action.maximize-column = {}; @@ -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 = {}; From c9f4ad0e13037bf53e304767134ce74d854c49c2 Mon Sep 17 00:00:00 2001 From: satr14 Date: Fri, 24 Jul 2026 15:21:07 +0700 Subject: [PATCH 2/3] revert brightness --- modules/home/rice/keybinds.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/home/rice/keybinds.nix b/modules/home/rice/keybinds.nix index 71a7928..d63a7d3 100644 --- a/modules/home/rice/keybinds.nix +++ b/modules/home/rice/keybinds.nix @@ -4,8 +4,8 @@ "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" "2%+" ]; allow-when-locked = true; }; - "XF86MonBrightnessDown" = { action.spawn = [ "brightnessctl" "s" "2%-" ]; allow-when-locked = true; }; + "XF86MonBrightnessUp" = { action.spawn = [ "brightnessctl" "s" "10%+" ]; allow-when-locked = true; }; + "XF86MonBrightnessDown" = { action.spawn = [ "brightnessctl" "s" "10%-" ]; allow-when-locked = true; }; "Mod+Q".action.close-window = {}; "Mod+W".action.maximize-column = {}; From d4b19a279ec94b8846190368fa3f4eb5c1839871 Mon Sep 17 00:00:00 2001 From: satr14 Date: Fri, 24 Jul 2026 15:22:47 +0700 Subject: [PATCH 3/3] put swappiness and governor in base --- modules/system/base.nix | 3 +++ modules/system/homelab/mc/default.nix | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/system/base.nix b/modules/system/base.nix index 3a20057..d62b589 100644 --- a/modules/system/base.nix +++ b/modules/system/base.nix @@ -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; diff --git a/modules/system/homelab/mc/default.nix b/modules/system/homelab/mc/default.nix index 2217a08..a452cfd 100644 --- a/modules/system/homelab/mc/default.nix +++ b/modules/system/homelab/mc/default.nix @@ -5,9 +5,6 @@ inputs.mc.nixosModules.minecraft-servers ]; 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