fix wine, non-lowlatency pipewire, and catt

This commit is contained in:
notgne2 2022-06-13 02:20:07 -07:00
parent 91eea7811a
commit 7ac8e1f861
Signed by: notgne2
GPG Key ID: 5CE0A245A2DAC84A
4 changed files with 13 additions and 5 deletions

View File

@ -35,7 +35,7 @@ in
home.packages = home.packages =
let let
newwine = (pkgs.wineFull.override { wineBuild = "wineWow"; wineRelease = "staging"; }); newwine = (pkgs.winePackages.full.override { wineBuild = "wineWow"; wineRelease = "staging"; });
newwinetricks = pkgs.winetricks.overrideAttrs (old: rec { newwinetricks = pkgs.winetricks.overrideAttrs (old: rec {
pathAdd = "${newwine}/bin:" + old.pathAdd; pathAdd = "${newwine}/bin:" + old.pathAdd;
postInstall = '' postInstall = ''

View File

@ -55,7 +55,7 @@ in
} }
]; ];
"nix.formatterPath" = "${pkgs.nixpkgs-fmt}/bin/nixpkgs-fmt"; "nix.formatterPath" = "${pkgs.nixfmt}/bin/nixfmt";
"nix.serverPath" = "${pkgs.rnix-lsp}/bin/rnix-lsp"; "nix.serverPath" = "${pkgs.rnix-lsp}/bin/rnix-lsp";
"nix.enableLanguageServer" = true; "nix.enableLanguageServer" = true;

View File

@ -174,8 +174,8 @@ in {
pulseaudio pulseaudio
]; ];
environment.etc."wireplumber/main.lua.d/51-alsa-config.lua".text = environment.etc."wireplumber/main.lua.d/51-alsa-config.lua" =
mkIf cfg.lowLatency '' mkIf cfg.lowLatency { text = ''
alsa_monitor.properties = { alsa_monitor.properties = {
["audio.rate"] = ${ ["audio.rate"] = ${
toString (cfg.rate * (if cfg.usbSoundcard then 2 else 1)) toString (cfg.rate * (if cfg.usbSoundcard then 2 else 1))
@ -184,7 +184,7 @@ in {
["api.alsa.headroom"] = 512, ["api.alsa.headroom"] = 512,
["api.alsa.period-size"] = ${toString cfg.periodSize} ["api.alsa.period-size"] = ${toString cfg.periodSize}
} }
''; ''; };
environment.etc."wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = '' environment.etc."wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = ''
bluez_monitor.properties = { bluez_monitor.properties = {

View File

@ -234,6 +234,14 @@ in {
} }
]; ];
networking.firewall.allowedTCPPortRanges = [
# Used for chromecast bullshit
{
from = 45000;
to = 47000;
}
];
networking.firewall.allowedTCPPorts = [ networking.firewall.allowedTCPPorts = [
# Steam remote play # Steam remote play
27036 27036