nixos-configs/devices/binto/modules/nix-gaming.nix

47 lines
807 B
Nix
Raw Normal View History

2023-11-22 15:33:16 -05:00
{
config,
2023-11-22 15:33:16 -05:00
nix-gaming,
pkgs,
...
}: let
inherit (config.vars) mainUser;
wine = nix-gaming.packages.${pkgs.system}.wine-ge;
in {
imports = [
nix-gaming.nixosModules.platformOptimizations
];
2023-11-23 01:15:32 -05:00
programs = {
steam = {
enable = true;
2023-11-28 21:24:53 -05:00
remotePlay.openFirewall = true;
2023-10-17 19:37:21 -04:00
2024-03-19 16:14:18 -04:00
extraCompatPackages = with pkgs; [
proton-ge-bin
2023-11-23 01:15:32 -05:00
];
platformOptimizations.enable = true;
2023-11-23 01:15:32 -05:00
};
2023-10-17 19:37:21 -04:00
};
2024-05-05 23:07:06 -04:00
environment.systemPackages = [
(pkgs.lutris.override {
extraLibraries = pkgs: [
# List library dependencies here
];
extraPkgs = pkgs: [
wine
];
})
pkgs.r2modman
2024-06-06 09:22:55 -04:00
pkgs.ryujinx
];
# Give wine a constant path for lutris
home-manager.users.${mainUser}.home.file = {
".bin/wine".source = "${wine}/bin/wine";
};
}