1 { config, pkgs, lib, ... }:
3 options.programs.sharing = {
4 enable = lib.mkEnableOption ''
5 sharing, a CLI tool for sharing files.
7 Note that it will opens the 7478 port for TCP in the firewall, which is needed for it to function properly
12 cfg = config.programs.sharing;
15 environment.systemPackages = [ pkgs.sharing ];
16 networking.firewall.allowedTCPPorts = [ 7478 ];