diff --git a/hosts/common/programs/calls.nix b/hosts/common/programs/calls.nix new file mode 100644 index 000000000..6cfae455d --- /dev/null +++ b/hosts/common/programs/calls.nix @@ -0,0 +1,32 @@ +# GNOME calls +# - +# - both a dialer and a call handler. +# - uses callaudiod dbus package. +# +# initial JMP.chat configuration: +# - message @cheogram.com "reset sip account" (this is not destructive, despite the name) +# - the bot will reply with auto-generated username/password plus a SIP server endpoint. +# just copy those into gnome-calls' GUI configurator +# - now gnome-calls can do outbound calls. inbound calls requires more chatting with the help bot +# +# my setup here is still very WIP. +# open questions: +# - can i receive calls even with GUI closed? +# - e.g. activated by callaudiod? +# - looks like `gnome-calls --daemon` does that? +{ config, lib, ... }: + +{ + sane.programs.calls = { + persist.private = [ + ".local/share/calls" # call "records" + # .local/share/folks # contacts? + ]; + suggestedPrograms = [ + "feedbackd" # needs `phone-incoming-call`, in particular + ]; + }; + programs.calls = lib.mkIf config.sane.programs.calls.enabled { + enable = true; + }; +} diff --git a/hosts/common/programs/default.nix b/hosts/common/programs/default.nix index beb231635..9240b689e 100644 --- a/hosts/common/programs/default.nix +++ b/hosts/common/programs/default.nix @@ -5,6 +5,7 @@ ./aerc.nix ./alacritty.nix ./assorted.nix + ./calls.nix ./cantata.nix ./chatty.nix ./conky diff --git a/hosts/modules/gui/default.nix b/hosts/modules/gui/default.nix index 08b48ffb6..749faa41f 100644 --- a/hosts/modules/gui/default.nix +++ b/hosts/modules/gui/default.nix @@ -19,6 +19,7 @@ "tuiApps" ] ++ [ "alacritty" # terminal emulator + "calls" # gnome calls (dialer/handler) # "celluloid" # mpv frontend "chatty" # matrix/xmpp/irc client "cozy" # audiobook player