This commit is contained in:
Tao Tien 2023-07-11 00:38:39 -07:00
parent ba1f4a32c4
commit a58f8530b7
8 changed files with 219 additions and 9 deletions

29
gaming.nix Normal file
View file

@ -0,0 +1,29 @@
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [
lutris
mangohud
prismlauncher
wine
];
programs.gamemode.enable = true;
programs.steam.enable = true;
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;
};
};
};
}