mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 20:39:18 -08:00
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{ pkgs, ... }: {
|
|
systemd.services.NetworkManager-wait-online = {
|
|
serviceConfig.ExecStart = [ "" "${pkgs.networkmanager}/bin/nm-online -q" ];
|
|
};
|
|
hardware.bluetooth = {
|
|
enable = true;
|
|
package = pkgs.bluez5-experimental;
|
|
settings = {
|
|
General = {
|
|
Enable = "Source,Sink,Media,Socket";
|
|
};
|
|
};
|
|
};
|
|
services.blueman.enable = true;
|
|
services.pipewire.media-session.config.bluez-monitor = {
|
|
properties = { };
|
|
rules = [
|
|
{
|
|
actions = {
|
|
update-props = {
|
|
"bluez5.a2dp-source-role" = "input";
|
|
"bluez5.auto-connect" = [ "hfp_hf" "hsp_hs" "a2dp_sink" "a2dp_source" "hsp_ag" "hfp_ag" ];
|
|
};
|
|
};
|
|
matches = [ { "device.name" = "~bluez_card.*"; } ];
|
|
}
|
|
{
|
|
actions = {
|
|
update-props = { "node.pause-on-idle" = false; };
|
|
};
|
|
matches = [ { "node.name" = "~bluez_input.*"; } { "node.name" = "~bluez_output.*"; } ];
|
|
}
|
|
];
|
|
};
|
|
networking = {
|
|
firewall = {
|
|
allowedUDPPorts = [ 5353 ];
|
|
allowedUDPPortRanges = [ { from = "32768"; to="60999" } ];
|
|
};
|
|
networkmanager = {
|
|
enable = true;
|
|
connectionConfig = {
|
|
"ipv6.ip6-privacy" = lib.mkForce 0;
|
|
};
|
|
};
|
|
};
|
|
}
|