feat(gaming): add r2modman and some steam stuff
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-06-01 15:27:11 -04:00
parent 80ab476c80
commit 1471de3400
2 changed files with 21 additions and 3 deletions

View file

@ -1,17 +1,27 @@
{ {
config,
nix-gaming, nix-gaming,
pkgs, pkgs,
... ...
}: { }: let
inherit (config.vars) mainUser;
wine = nix-gaming.packages.${pkgs.system}.wine-ge;
in {
imports = [
nix-gaming.nixosModules.platformOptimizations
];
programs = { programs = {
steam = { steam = {
# Disable HW accel to fix flickers
enable = true; enable = true;
remotePlay.openFirewall = true; remotePlay.openFirewall = true;
extraCompatPackages = with pkgs; [ extraCompatPackages = with pkgs; [
proton-ge-bin proton-ge-bin
]; ];
platformOptimizations.enable = true;
}; };
}; };
@ -21,8 +31,15 @@
# List library dependencies here # List library dependencies here
]; ];
extraPkgs = pkgs: [ extraPkgs = pkgs: [
nix-gaming.packages.${pkgs.system}.wine-ge wine
]; ];
}) })
pkgs.r2modman
]; ];
# Give wine a constant path for lutris
home-manager.users.${mainUser}.home.file = {
".bin/wine".source = "${wine}/bin/wine";
};
} }

View file

@ -10,3 +10,4 @@ message/rfc822=userapp-Thunderbird-9ME591.desktop
text/x-java=nvim.desktop; text/x-java=nvim.desktop;
x-scheme-handler/mailto=userapp-Thunderbird-9ME591.desktop x-scheme-handler/mailto=userapp-Thunderbird-9ME591.desktop
x-scheme-handler/mid=userapp-Thunderbird-9ME591.desktop x-scheme-handler/mid=userapp-Thunderbird-9ME591.desktop
x-scheme-handler/ror2mm=r2modman.desktop