finish nomad, add consul, sops

This commit is contained in:
2023-11-19 21:19:58 +00:00
parent b6798b62b5
commit b741a36211
12 changed files with 476 additions and 263 deletions

37
modules/consul.nix Normal file
View File

@@ -0,0 +1,37 @@
{
lib,
pkgs,
config,
inputs,
...
}: {
# virtualisation.docker.enable = true;
services.consul = {
package = pkgs.consul_1_9;
enable = true;
webUi = true;
extra_config = {
bootstrap = false;
bootstrap_expect = 7;
encrypt = config.sops.secrets.consul_encrypt;
performance = {
raft_multiplier = 5;
};
recursors = [
"192.168.1.1"
"8.8.8.8"
];
retry_join = [
"192.168.1.221"
"192.168.1.222"
"192.168.1.225"
"192.168.1.226"
"192.168.1.227"
"192.168.1.223"
"192.168.1.224"
];
};
};
}