From df9c27be41a1b2c160bff4b89551a994f3cb419e Mon Sep 17 00:00:00 2001 From: MFlossmann Date: Tue, 27 Aug 2024 17:56:04 +0200 Subject: [PATCH] add ryujinx and steam remote play --- hosts/remus/configuration.nix | 10 +++++++++- modules/nixOS/bundles/gaming.nix | 15 ++++++++++++--- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/hosts/remus/configuration.nix b/hosts/remus/configuration.nix index 2a397e6..62f5095 100644 --- a/hosts/remus/configuration.nix +++ b/hosts/remus/configuration.nix @@ -3,6 +3,7 @@ pkgs, lib, outputs, + inputs, ... }: { imports = [ @@ -31,9 +32,16 @@ programs.ssh.askPassword = lib.mkForce "${pkgs.kdePackages.ksshaskpass.out}/bin/ksshaskpass"; + environment.systemPackages = [ + pkgs.ryujinx + ]; + myNixOS = { bundles.general-desktop.enable = true; - bundles.gaming.enable = true; + bundles.gaming = { + enable = true; + remotePlay = true; + }; services.syncthing.enable = true; diff --git a/modules/nixOS/bundles/gaming.nix b/modules/nixOS/bundles/gaming.nix index e47a816..aad6889 100644 --- a/modules/nixOS/bundles/gaming.nix +++ b/modules/nixOS/bundles/gaming.nix @@ -1,14 +1,23 @@ -{config, pkgs, ...}:let +{config, pkgs, lib, ...}:let mainUser = config.myNixOS.sharedSettings.mainUser; + localCfg = config.myNixOS.bundles.gaming; in { + options = { + myNixOS.bundles.gaming.remotePlay = lib.mkEnableOption { + default = true; + }; + }; + programs.steam = { enable = true; gamescopeSession.enable = true; - # remotePlay.openFirewall = true; - # localNetworkGameTransfers.openFirewall = true; + remotePlay.openFirewall = localCfg.remotePlay; + localNetworkGameTransfers.openFirewall = localCfg.remotePlay; }; programs.gamemode.enable = true; + hardware.steam-hardware.enable = true; + environment.systemPackages = with pkgs; [protonup]; environment.sessionVariables = { STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/${mainUser}/.steam/root/compatibilitytools.d";