add ryujinx and steam remote play
This commit is contained in:
parent
551178b73a
commit
df9c27be41
2 changed files with 21 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue