move stuff to extras

This commit is contained in:
Tao Tien 2023-07-23 20:26:39 -07:00
parent 1dd8b80d42
commit 9279c2e232
4 changed files with 6 additions and 6 deletions

30
extras/gaming.nix Normal file
View file

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