nixos-configs/devices/binto/modules/nix-gaming.nix
matt1432 df78fafcb9
All checks were successful
Discord / discord commits (push) Has been skipped
fix: use latest on wpaperd
2024-06-06 09:22:55 -04:00

46 lines
807 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
pkgs.ryujinx
];
# Give wine a constant path for lutris
home-manager.users.${mainUser}.home.file = {
".bin/wine".source = "${wine}/bin/wine";
};
}