Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
34 lines
689 B
Nix
34 lines
689 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.programs.fcast-receiver;
|
|
in
|
|
{
|
|
meta = {
|
|
maintainers = pkgs.fcast-receiver.meta.maintainers;
|
|
};
|
|
|
|
options.programs.fcast-receiver = {
|
|
enable = lib.mkEnableOption "FCast Receiver";
|
|
openFirewall = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
description = ''
|
|
Open ports needed for the functionality of the program.
|
|
'';
|
|
};
|
|
package = lib.mkPackageOption pkgs "fcast-receiver" { };
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.systemPackages = [ cfg.package ];
|
|
networking.firewall = lib.mkIf cfg.openFirewall {
|
|
allowedTCPPorts = [ 46899 ];
|
|
};
|
|
};
|
|
}
|