8 cfg = config.programs.localsend;
12 options.programs.localsend = {
13 enable = lib.mkEnableOption "localsend, an open source cross-platform alternative to AirDrop";
15 openFirewall = lib.mkEnableOption "opening the firewall port ${toString firewallPort} for receiving files" // {
20 config = lib.mkIf cfg.enable {
21 environment.systemPackages = [ pkgs.localsend ];
22 networking.firewall.allowedTCPPorts = lib.optionals cfg.openFirewall [ firewallPort ];
25 meta.maintainers = with lib.maintainers; [ pandapip1 ];