summary refs log blame commit diff
path: root/nixos/modules/services/misc/novacomd.nix
blob: 7cfc68d2b6738961debd90961c6702518fa2645a (plain) (tree)






























                                                                                
{ config, lib, pkgs, ... }:

with lib;

let

  cfg = config.services.novacomd;

in {

  options = {
    services.novacomd = {
      enable = mkEnableOption "Novacom service for connecting to WebOS devices";
    };
  };

  config = mkIf cfg.enable {
    environment.systemPackages = [ pkgs.webos.novacom ];

    systemd.services.novacomd = {
      description = "Novacom WebOS daemon";
      wantedBy = [ "multi-user.target" ];

      serviceConfig = {
        ExecStart = "${pkgs.webos.novacomd}/sbin/novacomd";
      };
    };
  };

  meta.maintainers = with maintainers; [ dtzWill ];
}