From 7075c1c99bf48cf55cd84053eb9db53ad13e36e3 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Wed, 5 Jul 2023 17:53:54 +0100 Subject: [PATCH] Update flake. --- hosts/common/consul.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 hosts/common/consul.nix 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 ]; + }; +}