fix wine, non-lowlatency pipewire, and catt
This commit is contained in:
parent
91eea7811a
commit
7ac8e1f861
@ -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 = ''
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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 = {
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user