diff options
Diffstat (limited to 'nixos/modules/programs/calls.nix')
-rw-r--r-- | nixos/modules/programs/calls.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nixos/modules/programs/calls.nix b/nixos/modules/programs/calls.nix new file mode 100644 index 00000000000..08a223b408d --- /dev/null +++ b/nixos/modules/programs/calls.nix @@ -0,0 +1,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 + ]; + }; +} |