Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
Nix
1234567891011121314151617181920212223242526272829303132333435363738{ config, lib, pkgs, ...}:
let cfg = config.programs.winbox;in{ options.programs.winbox = { enable = lib.mkEnableOption ("MikroTik Winbox"); package = lib.mkPackageOption pkgs "winbox" { };
openFirewall = lib.mkOption { description = '' Whether to open ports for the MikroTik Neighbor Discovery protocol. Required for Winbox neighbor discovery. ''; default = false; type = lib.types.bool; }; };
config = lib.mkIf cfg.enable { environment.systemPackages = [ cfg.package ]; networking.firewall = lib.mkIf cfg.openFirewall { allowedUDPPorts = [ 5678 ]; allowedUDPPortRanges = [ { from = 40000; to = 50000; } ]; }; };}