mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
32 lines
588 B
Nix
32 lines
588 B
Nix
{ 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 ];
|
|
}
|