fix deployments

This commit is contained in:
Vivian 2021-11-12 09:43:50 +01:00
parent ba144d2351
commit cf781f3910
5 changed files with 31 additions and 22 deletions

View file

@ -11,7 +11,7 @@
../../common
];
networking.hostName = "consul";
networking.hostName = "vault";
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
@ -24,5 +24,18 @@
# Additional packages
environment.systemPackages = with pkgs; [ ];
networking.firewall.allowedTCPPorts = [ ];
# Vault
networking.firewall.allowedTCPPorts = [ 8200 ];
services.vault = {
enable = true;
# bin version includes the UI
package = pkgs.vault-bin;
address = "0.0.0.0:8200";
storageBackend = "file";
storagePath = "/var/lib/vault";
extraConfig = ''
ui = true
'';
};
}