cluster/services/frangiclave: test in simulacrum WIP

This commit is contained in:
Max Headroom 2024-07-23 02:47:35 +02:00
parent 24df6daa1d
commit 5f663aea92
2 changed files with 15 additions and 0 deletions

View file

@ -18,5 +18,10 @@
cluster = []; cluster = [];
agent = []; agent = [];
}; };
simulacrum = {
enable = true;
deps = [ "wireguard" "consul" ];
settings = ./test.nix;
};
}; };
} }

View file

@ -0,0 +1,10 @@
{ lib, ... }:
{
interactive.defaults = { cluster, config, ... }: {
config = lib.mkIf config.services.vault.enable {
environment.variables.VAULT_ADDR = cluster.config.hostLinks.${config.networking.hostName}.frangiclave-server.url;
environment.systemPackages = [ config.services.vault.package ];
};
};
}