nix-conf/system/dev/dn-server/services/bitwarden.nix
2026-01-20 13:41:53 +08:00

16 lines
280 B
Nix
Executable file

{ config, ... }:
let
inherit (config.networking) domain;
hostname = "bitwarden.${domain}";
in
{
imports = [
(import ../../../modules/vaultwarden.nix {
domain = hostname;
})
];
services.nginx.virtualHosts."${hostname}" = {
useACMEHost = domain;
};
}