13 cfg = config.services.ofono;
15 plugin_path = lib.concatMapStringsSep ":" (plugin: "${plugin}/lib/ofono/plugins") cfg.plugins;
23 enable = mkEnableOption "Ofono";
26 type = types.listOf types.package;
28 example = literalExpression "[ pkgs.modem-manager-gui ]";
30 The list of plugins to install.
37 config = mkIf cfg.enable {
38 services.dbus.packages = [ pkgs.ofono ];
40 systemd.packages = [ pkgs.ofono ];
42 systemd.services.ofono.environment.OFONO_PLUGIN_PATH = mkIf (cfg.plugins != [ ]) plugin_path;