Files
nix-config/hosts/common/specialisations/gaming.nix
2025-09-27 22:27:55 +05:00

34 lines
767 B
Nix

{
pkgs,
config,
lib,
...
}: let
hostSpec = config.hostSpec;
in {
specialisation.gaming.configuration = {
programs = {
steam = {
enable = true;
gamescopeSession.enable = true;
};
# to run steam games in game mode, add the following to the game's properties from within steam
# gamemoderun %command%
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];
};
}