diff --git a/cluster/services/frangiclave/default.nix b/cluster/services/frangiclave/default.nix index a64aa9b..c329164 100644 --- a/cluster/services/frangiclave/default.nix +++ b/cluster/services/frangiclave/default.nix @@ -18,5 +18,10 @@ cluster = []; agent = []; }; + simulacrum = { + enable = true; + deps = [ "wireguard" "consul" ]; + settings = ./test.nix; + }; }; } diff --git a/cluster/services/frangiclave/test.nix b/cluster/services/frangiclave/test.nix new file mode 100644 index 0000000..7fbc4be --- /dev/null +++ b/cluster/services/frangiclave/test.nix @@ -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 ]; + }; + }; +}