From 633b2aadd02bb98754e4b2be866aac28679f3737 Mon Sep 17 00:00:00 2001 From: KptltD00M Date: Tue, 23 Jun 2026 20:27:54 +0200 Subject: [PATCH] Add Steam and Vencord configurations: include desktop entries, session variables, and system packages --- home/programs/steam/default.nix | 28 ++++++++++++++++++++++++++++ home/programs/steam/system.nix | 13 +++++++++++++ hosts/home-pc/configuration.nix | 4 ++++ hosts/home-pc/home.nix | 1 + nixos/steam.nix | 13 +++++++++++++ nixos/vencord.nix | 5 +++++ 6 files changed, 64 insertions(+) create mode 100644 home/programs/steam/default.nix create mode 100644 home/programs/steam/system.nix create mode 100644 nixos/steam.nix create mode 100644 nixos/vencord.nix diff --git a/home/programs/steam/default.nix b/home/programs/steam/default.nix new file mode 100644 index 0000000..612c77f --- /dev/null +++ b/home/programs/steam/default.nix @@ -0,0 +1,28 @@ +{ + pkgs, + ... +}: { + home.packages = with pkgs; [ + steam + protonup-ng + proton-ge-bin + ]; + + xdg.desktopEntries = { + Steam = { + name = "Steam"; + exec = "${pkgs.steam}/bin/steam"; + icon = "steam"; + type = "Application"; + categories = [ + "Game" + "Network" + ]; + terminal = false; + }; + }; + + home.sessionVariables = { + STEAM_FORCE_DESKTOPUI_SCALING = "1.25"; + }; +} diff --git a/home/programs/steam/system.nix b/home/programs/steam/system.nix new file mode 100644 index 0000000..6e0ab4a --- /dev/null +++ b/home/programs/steam/system.nix @@ -0,0 +1,13 @@ +{ ... }: { + # Steam runtime tweaks (user-session level, not NixOS system config) + + 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"; + }; +} diff --git a/hosts/home-pc/configuration.nix b/hosts/home-pc/configuration.nix index 92c3c91..2b50535 100644 --- a/hosts/home-pc/configuration.nix +++ b/hosts/home-pc/configuration.nix @@ -12,6 +12,10 @@ ../../nixos/users.nix ../../nixos/utils.nix ../../nixos/hyprland.nix + + ../../nixos/vencord.nix + ../../nixos/steam.nix + ../../home/programs/helium/system.nix # I hate browser's configuration.. # You should let those lines as is diff --git a/hosts/home-pc/home.nix b/hosts/home-pc/home.nix index b12ce14..0c863b8 100644 --- a/hosts/home-pc/home.nix +++ b/hosts/home-pc/home.nix @@ -14,6 +14,7 @@ ../../home/programs/nix-utils ../../home/programs/spotatui ../../home/programs/yazi + ../../home/programs/steam ../../home/programs/group/basic-apps.nix ../../home/programs/group/cybersecurity.nix diff --git a/nixos/steam.nix b/nixos/steam.nix new file mode 100644 index 0000000..754bf2c --- /dev/null +++ b/nixos/steam.nix @@ -0,0 +1,13 @@ +{ ... }: { + programs.steam = { + enable = true; + gamescopeSession.enable = true; + remotePlay.openFirewall = true; + dedicatedServer.openFirewall = true; + }; + + hardware.graphics = { + enable = true; + enable32Bit = true; + }; +} diff --git a/nixos/vencord.nix b/nixos/vencord.nix new file mode 100644 index 0000000..9d2b875 --- /dev/null +++ b/nixos/vencord.nix @@ -0,0 +1,5 @@ +{ pkgs, ... }: { + environment.systemPackages = with pkgs; [ + vencord + ]; +}