depot/nixos/modules/services/misc/novacomd.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00: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 ];
}