mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
142074c2a8
Fix descriptions that don't account for (1) the "Whether to enable" prefix or (2) the automatically added trailing dot.
28 lines
429 B
Nix
28 lines
429 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.programs.calls;
|
|
in {
|
|
options = {
|
|
programs.calls = {
|
|
enable = mkEnableOption (lib.mdDoc ''
|
|
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
|
|
];
|
|
};
|
|
}
|