dotfiles/modules/nixos/gaming/ryujinx.nix

20 lines
489 B
Nix
Raw Normal View History

2024-04-20 13:42:06 +00:00
{
config,
pkgs,
lib,
...
}:
{
2023-06-02 02:39:05 +00:00
2024-04-20 13:42:06 +00:00
options.gaming.ryujinx.enable = lib.mkEnableOption "Ryujinx Nintendo Switch application.";
2023-06-02 02:39:05 +00:00
config = lib.mkIf config.gaming.ryujinx.enable {
environment.systemPackages = with pkgs; [ ryujinx ];
2024-04-20 13:42:06 +00:00
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";
};
2023-06-02 02:39:05 +00:00
};
}