{ config, pkgs, lib, ... }: let cfg = config.custom.services.tang; in { options.custom.services.tang = { enable = lib.mkEnableOption "tang"; }; config = lib.mkIf cfg.enable { services.tang = { enable = true; ipAddressAllow = [ "138.201.252.214/32" ]; }; }; }