nixos/ofono: add module

wip/yesman
Jan Tojnar 5 years ago
parent 8b56d205b2
commit f66613b3b6
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
  1. 1
      nixos/modules/module-list.nix
  2. 20
      nixos/modules/services/networking/ofono.nix
  3. 2
      pkgs/tools/networking/ofono/default.nix

@ -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

@ -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 ];
};
}

@ -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"
];

Loading…
Cancel
Save