chore: make gaming specialisation more modular and remove powersaving

This commit is contained in:
2025-09-04 16:57:30 +05:00
parent bdcd908e90
commit 3a66870244
5 changed files with 25 additions and 45 deletions

View File

@@ -1,6 +1,7 @@
{ pkgs, ... }:
{
{ pkgs, config, lib, ... }:
let
hostSpec = config.hostSpec;
in {
specialisation.gaming.configuration = {
programs = {
steam = {
@@ -13,8 +14,16 @@
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";
environment.systemPackages = with pkgs; [ mangohud protonup-qt prismlauncher ];
environment.systemPackages = with pkgs; [ mangohud protonup-qt ];
};
}