calls: split callaudiod out and run it manually
This commit is contained in:
13
hosts/common/programs/callaudiod.nix
Normal file
13
hosts/common/programs/callaudiod.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@@ -56,6 +56,7 @@ in
|
|||||||
# this is only the username/endpoint: the actual password appears to be stored in gnome-keyring
|
# 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;
|
secrets.".config/calls/sip-account.cfg" = ../../../secrets/common/gnome_calls_sip-account.cfg.bin;
|
||||||
suggestedPrograms = [
|
suggestedPrograms = [
|
||||||
|
"callaudiod" # runtime dependency (optional, but probably needed for mic muting?)
|
||||||
"feedbackd" # needs `phone-incoming-call`, in particular
|
"feedbackd" # needs `phone-incoming-call`, in particular
|
||||||
"gnome-keyring" # to remember the password
|
"gnome-keyring" # to remember the password
|
||||||
];
|
];
|
||||||
@@ -73,7 +74,4 @@ in
|
|||||||
command = "env G_MESSAGES_DEBUG=all PULSE_LATENCY_MSEC=50 gnome-calls";
|
command = "env G_MESSAGES_DEBUG=all PULSE_LATENCY_MSEC=50 gnome-calls";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
programs.calls = lib.mkIf cfg.enabled {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
@@ -14,6 +14,7 @@
|
|||||||
./bonsai.nix
|
./bonsai.nix
|
||||||
./brave.nix
|
./brave.nix
|
||||||
./bubblewrap.nix
|
./bubblewrap.nix
|
||||||
|
./callaudiod.nix
|
||||||
./calls.nix
|
./calls.nix
|
||||||
./cantata.nix
|
./cantata.nix
|
||||||
./catt.nix
|
./catt.nix
|
||||||
|
Reference in New Issue
Block a user