diff --git a/hosts/common/consul.nix b/hosts/common/consul.nix new file mode 100644 index 0000000..6356107 --- /dev/null +++ b/hosts/common/consul.nix @@ -0,0 +1,12 @@ +{ pkgs, config, ... }: +{ + services.consul.enable = true; + + environment.persistence."/persist".directories = [ + ]; + + networking.firewall = { + allowedTCPPorts = [ 8600 8500 8301 8302 8300 ]; + allowedUDPPorts = [ 8600 8301 8302 ]; + }; +}