calls: split callaudiod out and run it manually

This commit is contained in:
Colin 2024-05-18 07:14:42 +00:00
parent ee36f2f052
commit c987f13ef0
3 changed files with 15 additions and 3 deletions

View File

@ -0,0 +1,13 @@
# https://github.com/droidian/callaudiod
{ pkgs, ... }:
{
sane.programs.callaudiod = {
packageUnwrapped = pkgs.rmDbusServices pkgs.callaudiod;
services.callaudiod = {
description = "callaudiod: dbus service to switch audio profiles and mute microphone";
partOf = [ "default" ];
command = "callaudiod";
};
};
}

View File

@ -56,6 +56,7 @@ in
# this is only the username/endpoint: the actual password appears to be stored in gnome-keyring
secrets.".config/calls/sip-account.cfg" = ../../../secrets/common/gnome_calls_sip-account.cfg.bin;
suggestedPrograms = [
"callaudiod" # runtime dependency (optional, but probably needed for mic muting?)
"feedbackd" # needs `phone-incoming-call`, in particular
"gnome-keyring" # to remember the password
];
@ -73,7 +74,4 @@ in
command = "env G_MESSAGES_DEBUG=all PULSE_LATENCY_MSEC=50 gnome-calls";
};
};
programs.calls = lib.mkIf cfg.enabled {
enable = true;
};
}

View File

@ -14,6 +14,7 @@
./bonsai.nix
./brave.nix
./bubblewrap.nix
./callaudiod.nix
./calls.nix
./cantata.nix
./catt.nix