depot/hosts/VEGAS/services/vault/default.nix

13 lines
347 B
Nix
Raw Normal View History

2021-11-26 22:49:21 +02:00
{ config, pkgs, tools, ... }:
{
services.vault = {
enable = true;
storageBackend = "file";
storagePath = "/srv/storage/private/vault";
extraConfig = "ui = true";
package = pkgs.vault-bin;
};
services.nginx.virtualHosts."vault.${tools.meta.domain}" = tools.nginx.vhosts.proxy "http://${config.services.vault.address}";
}