depot/third_party/nixpkgs/nixos/modules/services/misc/novacomd.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

28 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 ];
}