mirror of
https://github.com/sstent/nixos-cluster.git
synced 2026-01-25 22:52:57 +00:00
38 lines
648 B
Nix
38 lines
648 B
Nix
{
|
|
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"
|
|
];
|
|
};
|
|
};
|
|
}
|