nixos-selfhost/vaultwarden.nix

23 lines
295 B
Nix
Raw Normal View History

2024-05-03 07:39:16 +02:00
{ ... }:
let
domain = "pw.sondell.org";
port = "8222";
in
{
#
services.vaultwarden = {
enable = true;
};
services.nginx.virtualHosts.${domain} = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:${port}/";
};
};
}