nixos/ofono: add module

This commit is contained in:
Jan Tojnar 2019-08-23 17:59:50 +02:00
parent 8b56d205b2
commit f66613b3b6
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
3 changed files with 22 additions and 1 deletions

View File

@ -648,6 +648,7 @@
./services/networking/nullidentdmod.nix
./services/networking/nylon.nix
./services/networking/ocserv.nix
./services/networking/ofono.nix
./services/networking/oidentd.nix
./services/networking/openfire.nix
./services/networking/openntpd.nix

View File

@ -0,0 +1,20 @@
# Ofono daemon.
{ config, lib, pkgs, ... }:
with lib;
{
###### interface
options = {
services.ofono = {
enable = mkEnableOption "Ofono";
};
};
###### implementation
config = mkIf config.services.ofono.enable {
services.dbus.packages = [ pkgs.ofono ];
systemd.packages = [ pkgs.ofono ];
};
}

View File

@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
];
configureFlags = [
"--with-dbusconfdir=${placeholder ''out''}/etc/dbus-1/system.d"
"--with-dbusconfdir=${placeholder ''out''}/share"
"--with-systemdunitdir=${placeholder ''out''}/lib/systemd/system"
"--enable-external-ell"
];