strato-infra/nixos/machines/vaultwarden/default.nix

30 lines
807 B
Nix
Raw Permalink Normal View History

2022-05-22 12:09:12 +02:00
{ config, pkgs, deployment, ... }: {
imports = [ ../../common ../../common/lxc.nix ];
networking.hostName = "vaultwarden";
system.stateVersion = "21.11";
2023-11-11 10:20:24 +01:00
# networking.firewall.allowedTCPPorts = [ 8000 ];
# networking.firewall.allowedUDPPorts = [ 8000 ];
networking.firewall.enable = false;
2022-05-22 12:09:12 +02:00
deployment.keys."envFile" = {
user = "vaultwarden";
group = "vaultwarden";
destDir = "/var/lib/keys";
keyCommand = [ "vault" "kv" "get" "-field=env" "kv/vaultwarden" ];
};
services.vaultwarden = {
enable = true;
dbBackend = "postgresql";
environmentFile = "/var/lib/keys/envFile";
config = {
domain = "https://vaultwarden.asraphiel.dev";
signupsDomainsWhitelist = "voidcorp.nl";
rocketPort = 8000;
2023-11-11 10:20:24 +01:00
rocketAddress = "0.0.0.0";
2022-05-22 12:09:12 +02:00
};
};
}