mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
26 lines
401 B
Nix
26 lines
401 B
Nix
|
{ 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 {
|
||
|
environment.systemPackages = [
|
||
|
pkgs.calls
|
||
|
];
|
||
|
|
||
|
services.dbus.packages = [
|
||
|
pkgs.callaudiod
|
||
|
];
|
||
|
};
|
||
|
}
|