summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/misc/novacomd.nix
blob: 29b5dcee225b41e37de8f7493476a2646d384f91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  config,
  lib,
  pkgs,
  ...
}:
let

  cfg = config.services.novacomd;

in
{

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

  config = lib.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 = [ ];
}