Merge pull request #131695 from tomfitzhenry/calls
programs/calls: init
This commit is contained in:
commit
10d21c60e7
|
@ -121,6 +121,7 @@
|
|||
./programs/bash-my-aws.nix
|
||||
./programs/bcc.nix
|
||||
./programs/browserpass.nix
|
||||
./programs/calls.nix
|
||||
./programs/captive-browser.nix
|
||||
./programs/ccache.nix
|
||||
./programs/cdemu.nix
|
||||
|
|
25
nixos/modules/programs/calls.nix
Normal file
25
nixos/modules/programs/calls.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ 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
|
||||
];
|
||||
};
|
||||
}
|
|
@ -94,6 +94,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
meta = with lib; {
|
||||
description = "A phone dialer and call handler";
|
||||
longDescription = "GNOME Calls is a phone dialer and call handler. Setting NixOS option `programs.calls.enable = true` is recommended.";
|
||||
homepage = "https://source.puri.sm/Librem5/calls";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ craigem lheckemann ];
|
||||
|
|
Loading…
Reference in a new issue