depot/hosts/VEGAS/services/vault/default.nix
2023-09-03 01:11:49 +02:00

12 lines
355 B
Nix

{ config, pkgs, depot, ... }:
{
services.vault = {
enable = true;
storageBackend = "file";
storagePath = "/srv/storage/private/vault";
extraConfig = "ui = true";
package = pkgs.vault-bin;
};
services.nginx.virtualHosts."vault.${depot.lib.meta.domain}" = depot.lib.nginx.vhosts.proxy "http://${config.services.vault.address}";
}