2023-11-22 15:33:16 -05:00
|
|
|
{
|
2024-06-01 15:27:11 -04:00
|
|
|
config,
|
2023-11-22 15:33:16 -05:00
|
|
|
nix-gaming,
|
|
|
|
pkgs,
|
|
|
|
...
|
2024-06-01 15:27:11 -04:00
|
|
|
}: 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
|
|
|
];
|
2024-06-01 15:27:11 -04:00
|
|
|
|
|
|
|
platformOptimizations.enable = true;
|
2023-11-23 01:15:32 -05:00
|
|
|
};
|
2023-10-17 19:37:21 -04:00
|
|
|
};
|
2023-12-28 22:47:21 -05:00
|
|
|
|
2024-05-05 23:07:06 -04:00
|
|
|
environment.systemPackages = [
|
|
|
|
(pkgs.lutris.override {
|
2023-12-28 22:47:21 -05:00
|
|
|
extraLibraries = pkgs: [
|
|
|
|
# List library dependencies here
|
|
|
|
];
|
|
|
|
extraPkgs = pkgs: [
|
2024-06-01 15:27:11 -04:00
|
|
|
wine
|
2023-12-28 22:47:21 -05:00
|
|
|
];
|
|
|
|
})
|
2024-06-01 15:27:11 -04:00
|
|
|
|
|
|
|
pkgs.r2modman
|
2024-06-06 09:22:55 -04:00
|
|
|
pkgs.ryujinx
|
2023-12-28 22:47:21 -05:00
|
|
|
];
|
2024-06-01 15:27:11 -04:00
|
|
|
|
|
|
|
# Give wine a constant path for lutris
|
|
|
|
home-manager.users.${mainUser}.home.file = {
|
|
|
|
".bin/wine".source = "${wine}/bin/wine";
|
|
|
|
};
|
2023-10-17 19:10:54 -04:00
|
|
|
}
|