mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
nixos/ofono: add module
This commit is contained in:
parent
8b56d205b2
commit
f66613b3b6
@ -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
|
||||
|
20
nixos/modules/services/networking/ofono.nix
Normal file
20
nixos/modules/services/networking/ofono.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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…
Reference in New Issue
Block a user