chore: make gaming specialisation more modular and remove powersaving
This commit is contained in:
@@ -2,14 +2,12 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
discord
|
|
||||||
lazygit
|
lazygit
|
||||||
gh
|
gh
|
||||||
dbeaver-bin
|
dbeaver-bin
|
||||||
cloudflare-warp
|
cloudflare-warp
|
||||||
protonmail-desktop
|
protonmail-desktop
|
||||||
protonvpn-gui
|
protonvpn-gui
|
||||||
cloudflare-warp
|
|
||||||
kubectl
|
kubectl
|
||||||
k9s
|
k9s
|
||||||
postgresql_17
|
postgresql_17
|
||||||
|
|||||||
12
home/shahab/specialisations/gaming.nix
Normal file
12
home/shahab/specialisations/gaming.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
discord
|
||||||
|
protonmail-desktop
|
||||||
|
protonvpn-gui
|
||||||
|
kitty
|
||||||
|
waybar
|
||||||
|
prismlauncher
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
|
let
|
||||||
{
|
hostSpec = config.hostSpec;
|
||||||
|
in {
|
||||||
specialisation.gaming.configuration = {
|
specialisation.gaming.configuration = {
|
||||||
programs = {
|
programs = {
|
||||||
steam = {
|
steam = {
|
||||||
@@ -13,8 +14,16 @@
|
|||||||
gamemode.enable = true;
|
gamemode.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home-manager.users."${hostSpec.username}".imports = lib.flatten [
|
||||||
|
({ config, ... }:
|
||||||
|
import (lib.custom.relativeToRoot
|
||||||
|
"home/${hostSpec.username}/specialisations/gaming.nix") {
|
||||||
|
inherit pkgs;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = "performance";
|
powerManagement.cpuFreqGovernor = "performance";
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ mangohud protonup-qt prismlauncher ];
|
environment.systemPackages = with pkgs; [ mangohud protonup-qt ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,38 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
specialisation.powersave.configuration = {
|
|
||||||
services.power-profiles-daemon.enable = false;
|
|
||||||
|
|
||||||
services.tlp = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
|
||||||
CPU_SCALING_GOVERNOR_ON_AC = "powersave";
|
|
||||||
CPU_ENERGY_PREF_ON_BAT = "power";
|
|
||||||
CPU_ENERGY_PREF_ON_AC = "power";
|
|
||||||
|
|
||||||
CPU_BOOST_ON_AC = 1;
|
|
||||||
CPU_BOOST_ON_BAT = 0;
|
|
||||||
|
|
||||||
CPU_HWP_DYN_BOOST_ON_AC=1;
|
|
||||||
CPU_HWP_DYN_BOOST_ON_BAT=0;
|
|
||||||
|
|
||||||
CPU_MIN_PERF_ON_BAT = 0;
|
|
||||||
CPU_MIN_PERF_ON_AC = 0;
|
|
||||||
CPU_MAX_PERF_ON_BAT = 20;
|
|
||||||
CPU_MAX_PERF_ON_AC = 100;
|
|
||||||
|
|
||||||
AMDGPU_ABM_LEVEL_ON_AC=0;
|
|
||||||
AMDGPU_ABM_LEVEL_ON_BAT=3;
|
|
||||||
|
|
||||||
PLATFORM_PROFILE_ON_AC="performance";
|
|
||||||
PLATFORM_PROFILE_ON_BAT="low-power";
|
|
||||||
|
|
||||||
START_CHARGE_THRESH_BAT0 = 20;
|
|
||||||
STOP_CHARGE_THRESH_BAT0 = 80;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -70,7 +70,6 @@
|
|||||||
(map
|
(map
|
||||||
(s: lib.custom.relativeToRoot "hosts/common/specialisations/${s}.nix") [
|
(s: lib.custom.relativeToRoot "hosts/common/specialisations/${s}.nix") [
|
||||||
"gaming"
|
"gaming"
|
||||||
"powersave"
|
|
||||||
])
|
])
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user