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

13 lines
355 B
Nix
Raw Normal View History

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