nixpkgs/nixos/modules/services/web-apps/openwebrx.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
806 B
Nix
Raw Normal View History

2021-11-09 21:54:12 +00:00
{ config, lib, pkgs, ... }:
let
cfg = config.services.openwebrx;
in
{
options.services.openwebrx = with lib; {
enable = mkEnableOption (lib.mdDoc "OpenWebRX Web interface for Software-Defined Radios on http://localhost:8073");
package = mkPackageOption pkgs "openwebrx" { };
2021-11-09 21:54:12 +00:00
};
config = lib.mkIf cfg.enable {
systemd.services.openwebrx = {
wantedBy = [ "multi-user.target" ];
path = with pkgs; [
csdr
2021-12-14 20:57:51 +00:00
digiham
2022-07-03 17:53:06 +00:00
codec2
js8call
m17-cxx-demod
2021-11-09 21:54:12 +00:00
alsaUtils
netcat
];
serviceConfig = {
ExecStart = "${cfg.package}/bin/openwebrx";
Restart = "always";
DynamicUser = true;
# openwebrx uses /var/lib/openwebrx by default
StateDirectory = [ "openwebrx" ];
};
};
};
}