summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorTom Fitzhenry <tom@tom-fitzhenry.me.uk>2021-07-28 01:13:37 +1000
committerTom Fitzhenry <tom@tom-fitzhenry.me.uk>2021-08-07 15:07:18 +1000
commit5d0bd88cdd7a5a1499f83888001cdee3d2defc94 (patch)
tree320f046959a12b3fafb950b9867db612293d7b5d /nixos/modules/programs
parent52168faa5b189ef26bd8d0dff9a226a4618dd4e9 (diff)
downloadnixpkgs-5d0bd88cdd7a5a1499f83888001cdee3d2defc94.tar
nixpkgs-5d0bd88cdd7a5a1499f83888001cdee3d2defc94.tar.gz
nixpkgs-5d0bd88cdd7a5a1499f83888001cdee3d2defc94.tar.bz2
nixpkgs-5d0bd88cdd7a5a1499f83888001cdee3d2defc94.tar.lz
nixpkgs-5d0bd88cdd7a5a1499f83888001cdee3d2defc94.tar.xz
nixpkgs-5d0bd88cdd7a5a1499f83888001cdee3d2defc94.tar.zst
nixpkgs-5d0bd88cdd7a5a1499f83888001cdee3d2defc94.zip
programs/calls: init
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r--nixos/modules/programs/calls.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/nixos/modules/programs/calls.nix b/nixos/modules/programs/calls.nix
new file mode 100644
index 00000000000..59961625e5d
--- /dev/null
+++ b/nixos/modules/programs/calls.nix
@@ -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
+    ];
+  };
+}