NOflake/extras/gaming.nix
2026-05-08 00:46:48 -07:00

69 lines
1.6 KiB
Nix

{
pkgs,
inputs,
...
}: let
pkgs-last-building = inputs.nixpkgs-last-building.legacyPackages.${pkgs.system};
in {
# aagl.url = "github:ezKEa/aagl-gtk-on-nix";
# aagl.inputs.nixpkgs.follows = "nixpkgs";
services.scx.scheduler = "scx_lavd"; # default is "scx_rustland"
services.lsfg-vk = {
enable = true;
ui.enable = true;
};
environment.systemPackages =
(with pkgs-last-building; [
# lutris
])
++ (with pkgs; [
# keep-sorted start
# parsec-bin
# yuzu # nintendo can suck the shit out of my asshole
easyeffects
gamemode
graalvmPackages.graalvm-ce
heroic
mangohud
osu-lazer-bin
prismlauncher
protonup-qt
r2modman
temurin-jre-bin-17
wine
# keep-sorted end
]);
networking.firewall.allowedTCPPorts = [25565];
programs.steam = {
enable = true;
# remotePlay.openFirewall = true;
# gamescopeSession.enable = false;
};
programs.gamemode.enable = true;
programs.gamescope.enable = true;
security.pam.loginLimits = [
{
domain = "@game";
type = "-";
item = "nice";
value = -20;
}
];
security.sudo-rs.extraRules = [
{
commands = [
{
command = "${pkgs.systemd}/bin/bootctl set-oneshot auto-windows";
options = ["NOPASSWD"];
}
];
groups = ["wheel"];
}
];
}