1 { config, lib, pkgs, ... }:
6 cfg = config.services.sundtek;
10 options.services.sundtek = {
11 enable = mkEnableOption (lib.mdDoc "Sundtek driver");
14 config = mkIf cfg.enable {
16 environment.systemPackages = [ pkgs.sundtek ];
18 systemd.services.sundtek = {
19 description = "Sundtek driver";
20 wantedBy = [ "multi-user.target" ];
25 ${pkgs.sundtek}/bin/mediasrv -d -v -p ${pkgs.sundtek}/bin ;\
26 ${pkgs.sundtek}/bin/mediaclient --start --wait-for-devices
28 ExecStop = "${pkgs.sundtek}/bin/mediaclient --shutdown";
29 RemainAfterExit = true;