fix podman firewall and bluetooth

This commit is contained in:
cy 2025-05-20 18:00:35 -04:00
parent deef6be227
commit cd88edf759
2 changed files with 11 additions and 8 deletions

View file

@ -69,7 +69,10 @@
networkmanager.enable = true; networkmanager.enable = true;
firewall = { firewall = {
enable = true; enable = true;
trustedInterfaces = [ "tailscale0" ]; trustedInterfaces = [
"tailscale0"
"podman1"
];
allowedTCPPorts = [ allowedTCPPorts = [
22 22
80 80

View file

@ -44,7 +44,7 @@
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
}; };
tmp.cleanOnBoot = true; tmp.cleanOnBoot = true;
kernelPackages = pkgs.linuxKernel.packages.linux_zen; kernelPackages = pkgs.linuxPackages_latest;
extraModulePackages = with config.boot.kernelPackages; [ extraModulePackages = with config.boot.kernelPackages; [
rtl8821ce rtl8821ce
]; ];
@ -109,8 +109,10 @@
pulse.enable = true; pulse.enable = true;
alsa.enable = true; alsa.enable = true;
alsa.support32Bit = true; alsa.support32Bit = true;
wireplumber.extraConfig.bluetoothEnhancements = { wireplumber.extraConfig."10-bluetooth-enhancements" = {
# https://julian.pages.freedesktop.org/wireplumber/daemon/configuration/bluetooth.html#bluetooth-configuration "wireplumber.settings" = {
"bluetooth.autoswitch-to-headset-profile" = false;
};
"monitor.bluez.properties" = { "monitor.bluez.properties" = {
"bluez5.enable-sbc-xq" = true; "bluez5.enable-sbc-xq" = true;
"bluez5.enable-msbc" = true; "bluez5.enable-msbc" = true;
@ -118,20 +120,18 @@
"bluez5.roles" = [ "bluez5.roles" = [
"a2dp_sink" "a2dp_sink"
"a2dp_source" "a2dp_source"
"hsp_hs"
"hsp_ag"
"hfp_hf" "hfp_hf"
"hfp_ag" "hfp_ag"
]; ];
}; };
}; };
# https://wiki.archlinux.org/title/Bluetooth_headset#Connecting_works,_sound_plays_fine_until_headphones_become_idle,_then_stutters # https://wiki.archlinux.org/title/Bluetooth_headset#Connecting_works,_sound_plays_fine_until_headphones_become_idle,_then_stutters
wireplumber.extraConfig.disableSuspend = { wireplumber.extraConfig."11-disable-suspend" = {
"monitor.bluez.rules" = [ "monitor.bluez.rules" = [
{ {
matches = [ matches = [
{ {
"node.name" = "bluez_output.*"; "device.name" = "bluez_card.*";
} }
]; ];
actions = { actions = {