finish nomad, add consul, sops

This commit is contained in:
2023-11-19 21:45:49 +00:00
parent 32080e6520
commit c8c2485dac

View File

@@ -4,9 +4,11 @@
config,
inputs,
...
}: {
}: let
secretstore = config._secretstore;
in {
# virtualisation.docker.enable = true;
sops.secrets.consul_encrypt = {};
services.consul = {
package = pkgs.consul_1_9;
enable = true;
@@ -14,7 +16,7 @@
extra_config = {
bootstrap = false;
bootstrap_expect = 7;
encrypt = config.sops.secrets.consul_encrypt;
encrypt = config.sops.secrets.consul_encrypt.path;
performance = {
raft_multiplier = 5;
};