2021-08-27 14:25:00 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.calls;
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
programs.calls = {
|
2022-09-09 14:08:57 +00:00
|
|
|
enable = mkEnableOption (lib.mdDoc ''
|
2021-08-27 14:25:00 +00:00
|
|
|
Whether to enable GNOME calls: a phone dialer and call handler.
|
2022-09-09 14:08:57 +00:00
|
|
|
'');
|
2021-08-27 14:25:00 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2022-02-10 20:34:41 +00:00
|
|
|
programs.dconf.enable = true;
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
environment.systemPackages = [
|
|
|
|
pkgs.calls
|
|
|
|
];
|
|
|
|
|
|
|
|
services.dbus.packages = [
|
|
|
|
pkgs.callaudiod
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|