NOflake/extras/gaming.nix

42 lines
994 B
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-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.heroic
# 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 = {
# default.clock.rate = 48000;
# default.allowed-rates = []
default.clock.quantum = 32;
default.clock.min-quantum = 32;
default.clock.max-quantum = 32;
};
};
};
}