summary refs log tree commit diff
path: root/nixos/modules/programs/calls.nix
blob: 08a223b408d4f4130be9c7321f8d3953e7252278 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ config, lib, pkgs, ... }:

with lib;

let
  cfg = config.programs.calls;
in {
  options = {
    programs.calls = {
      enable = mkEnableOption ''
        Whether to enable GNOME calls: a phone dialer and call handler.
      '';
    };
  };

  config = mkIf cfg.enable {
    programs.dconf.enable = true;

    environment.systemPackages = [
      pkgs.calls
    ];

    services.dbus.packages = [
      pkgs.callaudiod
    ];
  };
}