NOflake/extras/gaming.nix

70 lines
1.6 KiB
Nix
Raw Permalink Normal View History

2026-05-04 23:34:00 -07:00
{
pkgs,
inputs,
...
}: let
pkgs-last-building = inputs.nixpkgs-last-building.legacyPackages.${pkgs.system};
in {
2025-06-18 00:31:22 -07:00
# aagl.url = "github:ezKEa/aagl-gtk-on-nix";
# aagl.inputs.nixpkgs.follows = "nixpkgs";
2024-04-09 10:06:48 -07:00
2026-01-14 19:06:30 -08:00
services.scx.scheduler = "scx_lavd"; # default is "scx_rustland"
2025-07-30 17:45:40 -07:00
services.lsfg-vk = {
enable = true;
ui.enable = true;
};
2026-05-04 23:34:00 -07:00
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
]);
2023-11-01 02:14:15 -07:00
2025-05-12 00:46:29 -07:00
networking.firewall.allowedTCPPorts = [25565];
2024-06-01 17:07:25 -07:00
2025-05-12 00:46:29 -07:00
programs.steam = {
enable = true;
# remotePlay.openFirewall = true;
# gamescopeSession.enable = false;
};
programs.gamemode.enable = true;
programs.gamescope.enable = true;
2023-07-11 00:38:39 -07:00
2025-05-12 00:46:29 -07:00
security.pam.loginLimits = [
2024-03-23 01:24:31 -07:00
{
2025-05-12 00:46:29 -07:00
domain = "@game";
type = "-";
item = "nice";
value = -20;
2024-03-23 01:24:31 -07:00
}
2025-05-12 00:46:29 -07:00
];
security.sudo-rs.extraRules = [
{
commands = [
{
command = "${pkgs.systemd}/bin/bootctl set-oneshot auto-windows";
options = ["NOPASSWD"];
}
];
groups = ["wheel"];
}
];
2023-07-11 00:38:39 -07:00
}