Add bitwarden

This commit is contained in:
Hunter Haugen 2026-02-26 13:41:57 -08:00
parent 978ae01302
commit 77b18f8490
Signed by: hunner
GPG key ID: EF99694AA599DDAD
5 changed files with 34 additions and 2 deletions

View file

@ -0,0 +1,24 @@
{ config, ... }:
{
sops.secrets.vaultwarden-env = {
owner = "vaultwarden";
mode = "0400";
};
# Vaultwarden on warden.hunner.dev
services.vaultwarden = {
enable = true;
configureNginx = true;
domain = "warden.hunner.dev";
# SMTP and admin token are sourced from the sops-managed env file.
environmentFile = [ config.sops.secrets.vaultwarden-env.path ];
config = {
SIGNUPS_ALLOWED = true;
INVITATIONS_ALLOWED = true;
};
};
# ACME certificate for Cloudflare Full (strict) origin TLS.
services.nginx.virtualHosts."warden.hunner.dev".enableACME = true;
}