1 { config, lib, pkgs, ... }:
6 cfg = config.programs.fcast-receiver;
10 maintainers = pkgs.fcast-receiver.meta.maintainers;
13 options.programs.fcast-receiver = {
14 enable = mkEnableOption "FCast Receiver";
15 openFirewall = mkOption {
19 Open ports needed for the functionality of the program.
22 package = mkPackageOption pkgs "fcast-receiver" { };
25 config = mkIf cfg.enable {
26 environment.systemPackages = [ cfg.package ];
27 networking.firewall = mkIf cfg.openFirewall {
28 allowedTCPPorts = [ 46899 ];