2021-07-27 17:13:37 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.calls;
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
programs.calls = {
|
2022-08-28 21:18:44 +02:00
|
|
|
enable = mkEnableOption (lib.mdDoc ''
|
2021-07-27 17:13:37 +02:00
|
|
|
Whether to enable GNOME calls: a phone dialer and call handler.
|
2022-08-28 21:18:44 +02:00
|
|
|
'');
|
2021-07-27 17:13:37 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2022-01-14 20:10:39 +01:00
|
|
|
programs.dconf.enable = true;
|
|
|
|
|
2021-07-27 17:13:37 +02:00
|
|
|
environment.systemPackages = [
|
|
|
|
pkgs.calls
|
|
|
|
];
|
|
|
|
|
|
|
|
services.dbus.packages = [
|
|
|
|
pkgs.callaudiod
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|