diff --git a/modules/home/rice/keybinds.nix b/modules/home/rice/keybinds.nix index d63a7d3..00041fe 100644 --- a/modules/home/rice/keybinds.nix +++ b/modules/home/rice/keybinds.nix @@ -1,7 +1,7 @@ { pkgs, lib, hostname, ... }: { programs.niri.settings.binds = { - "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; }; + "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; }; "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 = [ "-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+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+G".action.center-column = {}; "Mod+F".action.toggle-window-floating = {}; diff --git a/modules/system/base.nix b/modules/system/base.nix index d62b589..3a20057 100644 --- a/modules/system/base.nix +++ b/modules/system/base.nix @@ -16,9 +16,6 @@ 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 a452cfd..2217a08 100644 --- a/modules/system/homelab/mc/default.nix +++ b/modules/system/homelab/mc/default.nix @@ -5,6 +5,9 @@ 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