mirror of
https://github.com/sstent/nixos-cluster.git
synced 2026-04-05 20:43:00 +00:00
finish nomad, add consul, sops
This commit is contained in:
@@ -4,9 +4,11 @@
|
|||||||
config,
|
config,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
secretstore = config._secretstore;
|
||||||
|
in {
|
||||||
# virtualisation.docker.enable = true;
|
# virtualisation.docker.enable = true;
|
||||||
|
sops.secrets.consul_encrypt = {};
|
||||||
services.consul = {
|
services.consul = {
|
||||||
package = pkgs.consul_1_9;
|
package = pkgs.consul_1_9;
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -14,7 +16,7 @@
|
|||||||
extra_config = {
|
extra_config = {
|
||||||
bootstrap = false;
|
bootstrap = false;
|
||||||
bootstrap_expect = 7;
|
bootstrap_expect = 7;
|
||||||
encrypt = config.sops.secrets.consul_encrypt;
|
encrypt = config.sops.secrets.consul_encrypt.path;
|
||||||
performance = {
|
performance = {
|
||||||
raft_multiplier = 5;
|
raft_multiplier = 5;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user