1 { config, lib, pkgs, ... }:
3 cfg = config.services.openwebrx;
6 options.services.openwebrx = with lib; {
7 enable = mkEnableOption "OpenWebRX Web interface for Software-Defined Radios on http://localhost:8073";
9 package = mkPackageOption pkgs "openwebrx" { };
12 config = lib.mkIf cfg.enable {
13 systemd.services.openwebrx = {
14 wantedBy = [ "multi-user.target" ];
25 ExecStart = "${cfg.package}/bin/openwebrx";
28 # openwebrx uses /var/lib/openwebrx by default
29 StateDirectory = [ "openwebrx" ];