diff --git a/hosts/tempest/default.nix b/hosts/tempest/default.nix index 8048130..c081c0d 100644 --- a/hosts/tempest/default.nix +++ b/hosts/tempest/default.nix @@ -91,6 +91,7 @@ nixpkgs.lib.nixosSystem { legendary.enable = true; lutris.enable = true; leagueoflegends.enable = true; + ryujinx.enable = true; }; } diff --git a/modules/nixos/gaming/default.nix b/modules/nixos/gaming/default.nix index b907a9f..fb12519 100644 --- a/modules/nixos/gaming/default.nix +++ b/modules/nixos/gaming/default.nix @@ -7,6 +7,7 @@ ./legendary.nix ./lutris.nix ./minecraft-server.nix + ./ryujinx.nix ./steam.nix ]; diff --git a/modules/nixos/gaming/ryujinx.nix b/modules/nixos/gaming/ryujinx.nix new file mode 100644 index 0000000..d31df5a --- /dev/null +++ b/modules/nixos/gaming/ryujinx.nix @@ -0,0 +1,17 @@ +{ config, pkgs, lib, ... }: { + + options.gaming.ryujinx.enable = + lib.mkEnableOption "Ryujinx Nintendo Switch application."; + + config = lib.mkIf config.gaming.ryujinx.enable { + environment.systemPackages = with pkgs; [ ryujinx ]; + + home-manager.users.${config.user}.xdg.desktopEntries.ryujinx = + lib.mkIf pkgs.stdenv.isLinux { + name = "Ryujinx"; + exec = + "env DOTNET_EnableAlternateStackCheck=1 Ryujinx -r /home/${config.user}/media/games/ryujinx/ %f"; + }; + }; + +}