mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
24 lines
393 B
Nix
24 lines
393 B
Nix
# neard service.
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
###### interface
|
|
options = {
|
|
services.neard = {
|
|
enable = mkEnableOption "neard, NFC daemon";
|
|
};
|
|
};
|
|
|
|
|
|
###### implementation
|
|
config = mkIf config.services.neard.enable {
|
|
environment.systemPackages = [ pkgs.neard ];
|
|
|
|
services.dbus.packages = [ pkgs.neard ];
|
|
|
|
systemd.packages = [ pkgs.neard ];
|
|
};
|
|
}
|