2017-10-03 11:43:40 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.services.novacomd;
|
|
|
|
|
|
|
|
in {
|
|
|
|
|
|
|
|
options = {
|
|
|
|
services.novacomd = {
|
2024-08-24 20:05:50 +00:00
|
|
|
enable = lib.mkEnableOption "Novacom service for connecting to WebOS devices";
|
2017-10-03 11:43:40 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-08-24 20:05:50 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2017-10-03 11:43:40 +00:00
|
|
|
environment.systemPackages = [ pkgs.webos.novacom ];
|
|
|
|
|
|
|
|
systemd.services.novacomd = {
|
|
|
|
description = "Novacom WebOS daemon";
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
|
|
|
|
serviceConfig = {
|
|
|
|
ExecStart = "${pkgs.webos.novacomd}/sbin/novacomd";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-08-24 20:05:50 +00:00
|
|
|
meta.maintainers = with lib.maintainers; [ dtzWill ];
|
2017-10-03 11:43:40 +00:00
|
|
|
}
|