2 { config, lib, pkgs, ... }:
8 cfg = config.services.ofono;
11 lib.concatMapStringsSep ":"
12 (plugin: "${plugin}/lib/ofono/plugins")
22 enable = mkEnableOption "Ofono";
25 type = types.listOf types.package;
27 example = literalExpression "[ pkgs.modem-manager-gui ]";
29 The list of plugins to install.
36 config = mkIf cfg.enable {
37 services.dbus.packages = [ pkgs.ofono ];
39 systemd.packages = [ pkgs.ofono ];
41 systemd.services.ofono.environment.OFONO_PLUGIN_PATH = mkIf (cfg.plugins != []) plugin_path;