8 cfg = config.services.sundtek;
12 options.services.sundtek = {
13 enable = lib.mkEnableOption "Sundtek driver";
16 config = lib.mkIf cfg.enable {
18 environment.systemPackages = [ pkgs.sundtek ];
20 systemd.services.sundtek = {
21 description = "Sundtek driver";
22 wantedBy = [ "multi-user.target" ];
27 ${pkgs.sundtek}/bin/mediasrv -d -v -p ${pkgs.sundtek}/bin ;\
28 ${pkgs.sundtek}/bin/mediaclient --start --wait-for-devices
30 ExecStop = "${pkgs.sundtek}/bin/mediaclient --shutdown";
31 RemainAfterExit = true;