2019-11-23 21:34:57 +00:00
|
|
|
# neard service.
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.neard = {
|
2022-08-28 20:18:44 +01:00
|
|
|
enable = mkEnableOption (lib.mdDoc "neard, NFC daemon");
|
2019-11-23 21:34:57 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.services.neard.enable {
|
|
|
|
environment.systemPackages = [ pkgs.neard ];
|
|
|
|
|
|
|
|
services.dbus.packages = [ pkgs.neard ];
|
|
|
|
|
|
|
|
systemd.packages = [ pkgs.neard ];
|
|
|
|
};
|
|
|
|
}
|