feat(gaming): add r2modman and some steam stuff

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
devices/binto/modules

View file

@ -1,17 +1,27 @@
{
config,
nix-gaming,
pkgs,
...
}: {
}: let
inherit (config.vars) mainUser;
wine = nix-gaming.packages.${pkgs.system}.wine-ge;
in {
imports = [
nix-gaming.nixosModules.platformOptimizations
];
programs = {
steam = {
# Disable HW accel to fix flickers
enable = true;
remotePlay.openFirewall = true;
extraCompatPackages = with pkgs; [
proton-ge-bin
];
platformOptimizations.enable = true;
};
};
@ -21,8 +31,15 @@
# List library dependencies here
];
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";
};
}