nixos-configs/devices/binto/modules/nix-gaming.nix
matt1432 1471de3400
All checks were successful
Discord / discord commits (push) Has been skipped
feat(gaming): add r2modman and some steam stuff
2024-06-01 15:27:11 -04:00

45 lines
790 B
Nix

{
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 = {
enable = true;
remotePlay.openFirewall = true;
extraCompatPackages = with pkgs; [
proton-ge-bin
];
platformOptimizations.enable = true;
};
};
environment.systemPackages = [
(pkgs.lutris.override {
extraLibraries = pkgs: [
# List library dependencies here
];
extraPkgs = pkgs: [
wine
];
})
pkgs.r2modman
];
# Give wine a constant path for lutris
home-manager.users.${mainUser}.home.file = {
".bin/wine".source = "${wine}/bin/wine";
};
}