osu settings

This commit is contained in:
caandt 2024-11-09 22:55:24 -06:00
parent c356fd05cd
commit c192c48bad
2 changed files with 35 additions and 5 deletions

View file

@ -2,6 +2,7 @@
imports = [
../../system
./hardware-configuration.nix
./osu.nix
];
networking.hostName = "hyuganatsu";
@ -19,10 +20,5 @@
isNormalUser = true;
};
};
services.udev.packages = [pkgs.opentabletdriver];
services.xserver.wacom.enable = true;
nix.settings = {
substituters = ["https://nix-gaming.cachix.org"];
trusted-public-keys = ["nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="];
};
}

34
hosts/hyuganatsu/osu.nix Normal file
View file

@ -0,0 +1,34 @@
{pkgs, ...}: {
services.udev.packages = [pkgs.opentabletdriver];
nix.settings = {
substituters = ["https://nix-gaming.cachix.org"];
trusted-public-keys = ["nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="];
};
programs.gamemode.enable = true;
services.pipewire.extraConfig.pipewire."92-low-latency" = {
"context.properties" = {
"default.clock.rate" = 48000;
"default.clock.quantum" = 64;
"default.clock.min-quantum" = 64;
"default.clock.max-quantum" = 64;
};
};
services.pipewire.extraConfig.pipewire-pulse."92-low-latency" = {
context.modules = [
{
name = "libpipewire-module-protocol-pulse";
args = {
pulse.min.req = "32/48000";
pulse.default.req = "32/48000";
pulse.max.req = "32/48000";
pulse.min.quantum = "32/48000";
pulse.max.quantum = "32/48000";
};
}
];
stream.properties = {
node.latency = "32/48000";
resample.quality = 1;
};
};
}