openrgbdr

This commit is contained in:
Tao Tien 2025-05-12 00:46:29 -07:00
parent 806a78e8d3
commit 3d28732c16
2 changed files with 79 additions and 74 deletions

View file

@ -1,7 +1,7 @@
{ {
pkgs, pkgs,
lib, lib,
... ...
}: }:
# let # let
# if_desktop = # if_desktop =
@ -29,79 +29,79 @@
graalvm-ce graalvm-ce
]; ];
networking.firewall.allowedTCPPorts = [25565]; networking.firewall.allowedTCPPorts = [25565];
programs.steam = { programs.steam = {
enable = true; enable = true;
# remotePlay.openFirewall = true; # remotePlay.openFirewall = true;
# gamescopeSession.enable = false; # gamescopeSession.enable = false;
}; };
programs.gamemode.enable = true; programs.gamemode.enable = true;
programs.gamescope.enable = true; programs.gamescope.enable = true;
security.pam.loginLimits = [ security.pam.loginLimits = [
{
domain = "@game";
type = "-";
item = "nice";
value = -20;
}
];
security.sudo-rs.extraRules = [
{
commands = [
{ {
command = "${pkgs.systemd}/bin/bootctl set-oneshot auto-windows"; domain = "@game";
options = ["NOPASSWD"]; type = "-";
item = "nice";
value = -20;
} }
]; ];
groups = ["wheel"]; security.sudo-rs.extraRules = [
} {
]; commands = [
{
command = "${pkgs.systemd}/bin/bootctl set-oneshot auto-windows";
options = ["NOPASSWD"];
}
];
groups = ["wheel"];
}
];
# THE FINALS audio borked # THE FINALS audio borked
# services.pipewire.enable = !if_desktop; # services.pipewire.enable = !if_desktop;
# hardware.pulseaudio.enable = if_desktop; # hardware.pulseaudio.enable = if_desktop;
# hardware.pulseaudio.support32Bit = if_desktop; # hardware.pulseaudio.support32Bit = if_desktop;
# services.pipewire.extraConfig = { # services.pipewire.extraConfig = {
# pipewire."99-low-latency" = { # pipewire."99-low-latency" = {
# context.properties = { # context.properties = {
# default.allowed-rates = [44100 48000 96000 192000]; # default.allowed-rates = [44100 48000 96000 192000];
# default.clock.rate = 192000; # default.clock.rate = 192000;
# default.clock.quantum = 32; # default.clock.quantum = 32;
# default.clock.min-quantum = 32; # default.clock.min-quantum = 32;
# default.clock.max-quantum = 32; # default.clock.max-quantum = 32;
# }; # };
# context.modules = [ # context.modules = [
# { # {
# name = "libpipewire-module-rt"; # name = "libpipewire-module-rt";
# args = { # args = {
# nice.level = -12; # nice.level = -12;
# rt.prio = 89; # rt.prio = 89;
# rt.time.soft = 200000; # rt.time.soft = 200000;
# rt.time.hard = 200000; # rt.time.hard = 200000;
# }; # };
# flags = ["ifexists nofail"]; # flags = ["ifexists nofail"];
# } # }
# ]; # ];
# }; # };
# pipewire-pulse."99-low-latency" = { # pipewire-pulse."99-low-latency" = {
# context.modules = [ # context.modules = [
# { # {
# name = "libpipewire-module-protocol-pulse"; # name = "libpipewire-module-protocol-pulse";
# args = { # args = {
# pulse.min.req = "32/192000"; # pulse.min.req = "32/192000";
# pulse.default.req = "32/192000"; # pulse.default.req = "32/192000";
# pulse.max.req = "32/192000"; # pulse.max.req = "32/192000";
# pulse.min.quantum = "32/192000"; # pulse.min.quantum = "32/192000";
# pulse.max.quantum = "32/192000"; # pulse.max.quantum = "32/192000";
# }; # };
# } # }
# ]; # ];
# stream.properties = { # stream.properties = {
# node.latency = "32/192000"; # node.latency = "32/192000";
# resample.quality = 1; # resample.quality = 1;
# }; # };
# }; # };
# }; # };
} }

View file

@ -12,8 +12,13 @@
# foldingathome # foldingathome
# gwe # gwe
# openrgb # openrgb
openrgb-plugin-effects
openrgb-plugin-hardwaresync
]; ];
services.hardware.openrgb.enable = true; services.hardware.openrgb = {
enable = true;
package = pkgs.openrgb-with-all-plugins;
};
services.tailscale.useRoutingFeatures = "both"; services.tailscale.useRoutingFeatures = "both";
boot.kernel.sysctl."net.ipv4.ip_forward" = "1"; boot.kernel.sysctl."net.ipv4.ip_forward" = "1";