This commit is contained in:
mjallen18
2025-08-24 18:56:51 -05:00
parent cfaf900db6
commit 2ea82a643d
22 changed files with 338 additions and 531 deletions

View File

@@ -2,11 +2,11 @@
lib,
config,
pkgs,
namespace,
...
}:
let
cfg = config.share.gaming;
pkgsVersion = pkgs; # .unstable;
cfg = config.${namespace}.gaming;
in
{
imports = [ ./options.nix ];
@@ -22,7 +22,7 @@ in
remotePlay.openFirewall = true;
# Open ports in the firewall for Source Dedicated Server
dedicatedServer.openFirewall = true;
extraCompatPackages = with pkgsVersion; [ proton-ge-bin ];
extraCompatPackages = with pkgs; [ proton-ge-bin ];
gamescopeSession = {
enable = true;
args = [
@@ -49,6 +49,7 @@ in
gamemode.enable = true;
};
# Hardware configs
hardware = {
# Xbox controllers
@@ -58,11 +59,17 @@ in
steam-hardware.enable = true;
};
environment = {
variables = {
STEAM_FORCE_DESKTOPUI_SCALING = "1.0";
};
};
# Configure nixpkgs
nixpkgs.config.packageOverrides = pkgs: {
steam = pkgs.steam.override {
extraPkgs =
_pkgs: with pkgsVersion; [
_pkgs: with pkgs; [
xorg.libXcursor
xorg.libXi
xorg.libXinerama

View File

@@ -1,7 +1,7 @@
{ lib, ... }:
{ lib, namespace, ... }:
with lib;
{
options.share.gaming = {
options.${namespace}.gaming = {
enable = mkEnableOption "enable gaming stuffs";
};
}