Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
Nix
12345678910111213141516171819202122232425262728293031323334{ 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 ]; }; };}