feat: add gaming applications configuration for NixOS
This commit is contained in:
@@ -1,27 +1,8 @@
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
home.packages = with pkgs; [
|
||||
steam
|
||||
protonup-ng
|
||||
];
|
||||
|
||||
xdg.desktopEntries = {
|
||||
Steam = {
|
||||
name = "Steam";
|
||||
exec = "${pkgs.steam}/bin/steam";
|
||||
icon = "steam";
|
||||
type = "Application";
|
||||
categories = [
|
||||
"Game"
|
||||
"Network"
|
||||
];
|
||||
terminal = false;
|
||||
};
|
||||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
# Better Steam scaling on HiDPI displays
|
||||
STEAM_FORCE_DESKTOPUI_SCALING = "1.25";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,13 +1,27 @@
|
||||
{ ... }: {
|
||||
# Steam runtime tweaks (user-session level, not NixOS system config)
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
|
||||
home.sessionVariables = {
|
||||
# Improves scaling consistency on HiDPI / Wayland setups
|
||||
STEAM_FORCE_DESKTOPUI_SCALING = "1.25";
|
||||
|
||||
# Optional Proton-related behavior toggles (safe defaults)
|
||||
PROTON_ENABLE_NVAPI = "1";
|
||||
PROTON_NO_ESYNC = "0";
|
||||
PROTON_NO_FSYNC = "0";
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
gamescopeSession.enable = true;
|
||||
|
||||
remotePlay.openFirewall = true;
|
||||
localNetworkGameTransfers.openFirewall = true;
|
||||
|
||||
extraCompatPackages = with pkgs; [
|
||||
proton-ge-bin
|
||||
];
|
||||
};
|
||||
|
||||
programs.gamescope.enable = true;
|
||||
programs.gamemode.enable = true;
|
||||
|
||||
hardware.steam-hardware.enable = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user