mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
29 lines
588 B
Nix
29 lines
588 B
Nix
{ 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 = with lib.maintainers; [ dtzWill ];
|
|
}
|