NOflake/extras/gaming.nix

47 lines
1.2 KiB
Nix
Raw Normal View History

2023-10-30 14:10:57 -07:00
{ pkgs, aagl, ... }: {
imports = [ aagl.nixosModules.default ];
2023-07-11 00:38:39 -07:00
environment.systemPackages = with pkgs; [
2023-11-01 18:58:21 -07:00
unstable.heroic
2023-09-28 23:33:56 -07:00
unstable.lutris
unstable.mangohud
unstable.prismlauncher
2023-07-11 00:38:39 -07:00
wine
2023-09-28 23:33:56 -07:00
# unstable.parsec-bin
2023-07-11 00:38:39 -07:00
];
2023-11-01 02:14:15 -07:00
nixpkgs.config.permittedInsecurePackages = [
"electron-24.8.6"
# "electron-12.2.3"
];
2023-07-11 00:38:39 -07:00
programs.steam.enable = true;
2023-07-14 19:02:49 -07:00
programs.gamemode.enable = true;
programs.gamescope.enable = true;
2023-07-11 00:38:39 -07:00
2023-10-30 14:10:57 -07:00
nix.settings = aagl.nixConfig;
programs.honkers-railway-launcher.enable = true;
2023-07-11 00:38:39 -07:00
security.rtkit.enable = true;
environment.etc =
let
json = pkgs.formats.json { };
in
{
"pipewire/pipewire.d/92-low-latency.conf".source = json.generate "92-low-latency.conf" {
context.properties = {
2024-01-22 17:42:21 -08:00
default.clock.rate = 48000;
2023-07-11 00:38:39 -07:00
# default.allowed-rates = []
default.clock.quantum = 32;
default.clock.min-quantum = 32;
default.clock.max-quantum = 32;
};
};
2023-12-25 20:10:20 -08:00
# "pipewire/pipewire.d/99-input-denoising.conf" = json.generate "99-input-denoising.conf" {
# context.modules = [{
# name = "libpipewire-module-filter-chain";
# }];
# };
2023-07-11 00:38:39 -07:00
};
}