nix-infra/configs/services/vaultwarden.nix

17 lines
399 B
Nix

{ lib, pkgs, config, ... }:
let port = 8080;
in
{
services.vaultwarden = {
enable = true;
config = {
WEBSOCKET_ENABLED = true; # Enable WebSocket notifications.
SIGNUP_ALLOWED = false;
ROCKET_ADDRESS = "192.168.178.51";
DOMAIN = "http://192.168.178.51";
ROCKET_PORT = port;
ADMIN_TOKEN =
};
};
networking.firewall.allowedTCPPorts = [ port ];
}